summaryrefslogtreecommitdiff
path: root/src/context.h
blob: f74bcdb8a933a0f34f8b9e6f5c88d68a06f003e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef CONTEXT_H
#define CONTEXT_H

#include "OpenCL/cl.h"

#include "pipe/p_context.h"

struct _cl_context {
    struct pipe_context *pipe;
    cl_uint id;
};

void cl_set_current_context(struct _cl_context *ctx);
struct _cl_context *cl_current_context(void);

#endif