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