summaryrefslogtreecommitdiff
path: root/src/core/context.h
blob: 06a18a7709025aa6965430e5ac6e55612568d312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef CONTEXT_H
#define CONTEXT_H

#include "CL/cl.h"
#include "pipe/p_context.h"

namespace Coal {

    class Context {
    public:
        Context();
        ~Context();

        bool ref();
        bool deref();

    private:
        struct pipe_context pipe;
        cl_uint id;
    };

}

struct _cl_context : public Coal::Context
{
};

#endif