ocl: update autogenerated code
This commit is contained in:
@@ -1,435 +0,0 @@
|
||||
//
|
||||
// AUTOGENERATED, DO NOT EDIT
|
||||
//
|
||||
// generated by parser_cl.py
|
||||
enum OPENCL_FN_ID {
|
||||
OPENCL_FN_clGetPlatformIDs = 0,
|
||||
OPENCL_FN_clGetPlatformInfo,
|
||||
OPENCL_FN_clGetDeviceIDs,
|
||||
OPENCL_FN_clGetDeviceInfo,
|
||||
OPENCL_FN_clCreateContext,
|
||||
OPENCL_FN_clCreateContextFromType,
|
||||
OPENCL_FN_clRetainContext,
|
||||
OPENCL_FN_clReleaseContext,
|
||||
OPENCL_FN_clGetContextInfo,
|
||||
OPENCL_FN_clCreateCommandQueue,
|
||||
OPENCL_FN_clRetainCommandQueue,
|
||||
OPENCL_FN_clReleaseCommandQueue,
|
||||
OPENCL_FN_clGetCommandQueueInfo,
|
||||
OPENCL_FN_clSetCommandQueueProperty,
|
||||
OPENCL_FN_clCreateBuffer,
|
||||
OPENCL_FN_clCreateSubBuffer,
|
||||
OPENCL_FN_clCreateImage2D,
|
||||
OPENCL_FN_clCreateImage3D,
|
||||
OPENCL_FN_clRetainMemObject,
|
||||
OPENCL_FN_clReleaseMemObject,
|
||||
OPENCL_FN_clGetSupportedImageFormats,
|
||||
OPENCL_FN_clGetMemObjectInfo,
|
||||
OPENCL_FN_clGetImageInfo,
|
||||
OPENCL_FN_clSetMemObjectDestructorCallback,
|
||||
OPENCL_FN_clCreateSampler,
|
||||
OPENCL_FN_clRetainSampler,
|
||||
OPENCL_FN_clReleaseSampler,
|
||||
OPENCL_FN_clGetSamplerInfo,
|
||||
OPENCL_FN_clCreateProgramWithSource,
|
||||
OPENCL_FN_clCreateProgramWithBinary,
|
||||
OPENCL_FN_clRetainProgram,
|
||||
OPENCL_FN_clReleaseProgram,
|
||||
OPENCL_FN_clBuildProgram,
|
||||
OPENCL_FN_clUnloadCompiler,
|
||||
OPENCL_FN_clGetProgramInfo,
|
||||
OPENCL_FN_clGetProgramBuildInfo,
|
||||
OPENCL_FN_clCreateKernel,
|
||||
OPENCL_FN_clCreateKernelsInProgram,
|
||||
OPENCL_FN_clRetainKernel,
|
||||
OPENCL_FN_clReleaseKernel,
|
||||
OPENCL_FN_clSetKernelArg,
|
||||
OPENCL_FN_clGetKernelInfo,
|
||||
OPENCL_FN_clGetKernelWorkGroupInfo,
|
||||
OPENCL_FN_clWaitForEvents,
|
||||
OPENCL_FN_clGetEventInfo,
|
||||
OPENCL_FN_clCreateUserEvent,
|
||||
OPENCL_FN_clRetainEvent,
|
||||
OPENCL_FN_clReleaseEvent,
|
||||
OPENCL_FN_clSetUserEventStatus,
|
||||
OPENCL_FN_clSetEventCallback,
|
||||
OPENCL_FN_clGetEventProfilingInfo,
|
||||
OPENCL_FN_clFlush,
|
||||
OPENCL_FN_clFinish,
|
||||
OPENCL_FN_clEnqueueReadBuffer,
|
||||
OPENCL_FN_clEnqueueReadBufferRect,
|
||||
OPENCL_FN_clEnqueueWriteBuffer,
|
||||
OPENCL_FN_clEnqueueWriteBufferRect,
|
||||
OPENCL_FN_clEnqueueCopyBuffer,
|
||||
OPENCL_FN_clEnqueueCopyBufferRect,
|
||||
OPENCL_FN_clEnqueueReadImage,
|
||||
OPENCL_FN_clEnqueueWriteImage,
|
||||
OPENCL_FN_clEnqueueCopyImage,
|
||||
OPENCL_FN_clEnqueueCopyImageToBuffer,
|
||||
OPENCL_FN_clEnqueueCopyBufferToImage,
|
||||
OPENCL_FN_clEnqueueMapBuffer,
|
||||
OPENCL_FN_clEnqueueMapImage,
|
||||
OPENCL_FN_clEnqueueUnmapMemObject,
|
||||
OPENCL_FN_clEnqueueNDRangeKernel,
|
||||
OPENCL_FN_clEnqueueTask,
|
||||
OPENCL_FN_clEnqueueNativeKernel,
|
||||
OPENCL_FN_clEnqueueMarker,
|
||||
OPENCL_FN_clEnqueueWaitForEvents,
|
||||
OPENCL_FN_clEnqueueBarrier,
|
||||
OPENCL_FN_clGetExtensionFunctionAddress,
|
||||
};
|
||||
// generated by parser_cl.py
|
||||
const char* opencl_fn_names[] = {
|
||||
"clGetPlatformIDs",
|
||||
"clGetPlatformInfo",
|
||||
"clGetDeviceIDs",
|
||||
"clGetDeviceInfo",
|
||||
"clCreateContext",
|
||||
"clCreateContextFromType",
|
||||
"clRetainContext",
|
||||
"clReleaseContext",
|
||||
"clGetContextInfo",
|
||||
"clCreateCommandQueue",
|
||||
"clRetainCommandQueue",
|
||||
"clReleaseCommandQueue",
|
||||
"clGetCommandQueueInfo",
|
||||
"clSetCommandQueueProperty",
|
||||
"clCreateBuffer",
|
||||
"clCreateSubBuffer",
|
||||
"clCreateImage2D",
|
||||
"clCreateImage3D",
|
||||
"clRetainMemObject",
|
||||
"clReleaseMemObject",
|
||||
"clGetSupportedImageFormats",
|
||||
"clGetMemObjectInfo",
|
||||
"clGetImageInfo",
|
||||
"clSetMemObjectDestructorCallback",
|
||||
"clCreateSampler",
|
||||
"clRetainSampler",
|
||||
"clReleaseSampler",
|
||||
"clGetSamplerInfo",
|
||||
"clCreateProgramWithSource",
|
||||
"clCreateProgramWithBinary",
|
||||
"clRetainProgram",
|
||||
"clReleaseProgram",
|
||||
"clBuildProgram",
|
||||
"clUnloadCompiler",
|
||||
"clGetProgramInfo",
|
||||
"clGetProgramBuildInfo",
|
||||
"clCreateKernel",
|
||||
"clCreateKernelsInProgram",
|
||||
"clRetainKernel",
|
||||
"clReleaseKernel",
|
||||
"clSetKernelArg",
|
||||
"clGetKernelInfo",
|
||||
"clGetKernelWorkGroupInfo",
|
||||
"clWaitForEvents",
|
||||
"clGetEventInfo",
|
||||
"clCreateUserEvent",
|
||||
"clRetainEvent",
|
||||
"clReleaseEvent",
|
||||
"clSetUserEventStatus",
|
||||
"clSetEventCallback",
|
||||
"clGetEventProfilingInfo",
|
||||
"clFlush",
|
||||
"clFinish",
|
||||
"clEnqueueReadBuffer",
|
||||
"clEnqueueReadBufferRect",
|
||||
"clEnqueueWriteBuffer",
|
||||
"clEnqueueWriteBufferRect",
|
||||
"clEnqueueCopyBuffer",
|
||||
"clEnqueueCopyBufferRect",
|
||||
"clEnqueueReadImage",
|
||||
"clEnqueueWriteImage",
|
||||
"clEnqueueCopyImage",
|
||||
"clEnqueueCopyImageToBuffer",
|
||||
"clEnqueueCopyBufferToImage",
|
||||
"clEnqueueMapBuffer",
|
||||
"clEnqueueMapImage",
|
||||
"clEnqueueUnmapMemObject",
|
||||
"clEnqueueNDRangeKernel",
|
||||
"clEnqueueTask",
|
||||
"clEnqueueNativeKernel",
|
||||
"clEnqueueMarker",
|
||||
"clEnqueueWaitForEvents",
|
||||
"clEnqueueBarrier",
|
||||
"clGetExtensionFunctionAddress",
|
||||
};
|
||||
|
||||
namespace {
|
||||
// generated by parser_cl.py
|
||||
template <int ID, typename _R>
|
||||
struct opencl_fn0
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)();
|
||||
static _R CL_API_CALL switch_fn()
|
||||
{ return ((FN)opencl_check_fn(ID))(); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1>
|
||||
struct opencl_fn1
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2>
|
||||
struct opencl_fn2
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3>
|
||||
struct opencl_fn3
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4>
|
||||
struct opencl_fn4
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5>
|
||||
struct opencl_fn5
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6>
|
||||
struct opencl_fn6
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7>
|
||||
struct opencl_fn7
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8>
|
||||
struct opencl_fn8
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8, typename _T9>
|
||||
struct opencl_fn9
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8, _T9 p9)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8, p9); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8, typename _T9, typename _T10>
|
||||
struct opencl_fn10
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8, _T9 p9, _T10 p10)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8, typename _T9, typename _T10, typename _T11>
|
||||
struct opencl_fn11
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8, _T9 p9, _T10 p10, _T11 p11)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8, typename _T9, typename _T10, typename _T11, typename _T12>
|
||||
struct opencl_fn12
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8, _T9 p9, _T10 p10, _T11 p11, _T12 p12)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8, typename _T9, typename _T10, typename _T11, typename _T12, typename _T13>
|
||||
struct opencl_fn13
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8, _T9 p9, _T10 p10, _T11 p11, _T12 p12, _T13 p13)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13); }
|
||||
};
|
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8, typename _T9, typename _T10, typename _T11, typename _T12, typename _T13, typename _T14>
|
||||
struct opencl_fn14
|
||||
{
|
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13, _T14);
|
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8, _T9 p9, _T10 p10, _T11 p11, _T12 p12, _T13 p13, _T14 p14)
|
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14); }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// generated by parser_cl.py
|
||||
cl_int (CL_API_CALL*clGetPlatformIDs)(cl_uint, cl_platform_id*, cl_uint*) = opencl_fn3<OPENCL_FN_clGetPlatformIDs, cl_int, cl_uint, cl_platform_id*, cl_uint*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetPlatformInfo)(cl_platform_id, cl_platform_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetPlatformInfo, cl_int, cl_platform_id, cl_platform_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetDeviceIDs)(cl_platform_id, cl_device_type, cl_uint, cl_device_id*, cl_uint*) = opencl_fn5<OPENCL_FN_clGetDeviceIDs, cl_int, cl_platform_id, cl_device_type, cl_uint, cl_device_id*, cl_uint*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetDeviceInfo)(cl_device_id, cl_device_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetDeviceInfo, cl_int, cl_device_id, cl_device_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_context (CL_API_CALL*clCreateContext)(const cl_context_properties*, cl_uint, const cl_device_id*, void (CL_CALLBACK*) (const char*, const void*, size_t, void*), void*, cl_int*) = opencl_fn6<OPENCL_FN_clCreateContext, cl_context, const cl_context_properties*, cl_uint, const cl_device_id*, void (CL_CALLBACK*) (const char*, const void*, size_t, void*), void*, cl_int*>::switch_fn;
|
||||
cl_context (CL_API_CALL*clCreateContextFromType)(const cl_context_properties*, cl_device_type, void (CL_CALLBACK*) (const char*, const void*, size_t, void*), void*, cl_int*) = opencl_fn5<OPENCL_FN_clCreateContextFromType, cl_context, const cl_context_properties*, cl_device_type, void (CL_CALLBACK*) (const char*, const void*, size_t, void*), void*, cl_int*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clRetainContext)(cl_context) = opencl_fn1<OPENCL_FN_clRetainContext, cl_int, cl_context>::switch_fn;
|
||||
cl_int (CL_API_CALL*clReleaseContext)(cl_context) = opencl_fn1<OPENCL_FN_clReleaseContext, cl_int, cl_context>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetContextInfo)(cl_context, cl_context_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetContextInfo, cl_int, cl_context, cl_context_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_command_queue (CL_API_CALL*clCreateCommandQueue)(cl_context, cl_device_id, cl_command_queue_properties, cl_int*) = opencl_fn4<OPENCL_FN_clCreateCommandQueue, cl_command_queue, cl_context, cl_device_id, cl_command_queue_properties, cl_int*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clRetainCommandQueue)(cl_command_queue) = opencl_fn1<OPENCL_FN_clRetainCommandQueue, cl_int, cl_command_queue>::switch_fn;
|
||||
cl_int (CL_API_CALL*clReleaseCommandQueue)(cl_command_queue) = opencl_fn1<OPENCL_FN_clReleaseCommandQueue, cl_int, cl_command_queue>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetCommandQueueInfo)(cl_command_queue, cl_command_queue_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetCommandQueueInfo, cl_int, cl_command_queue, cl_command_queue_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clSetCommandQueueProperty)(cl_command_queue, cl_command_queue_properties, cl_bool, cl_command_queue_properties*) = opencl_fn4<OPENCL_FN_clSetCommandQueueProperty, cl_int, cl_command_queue, cl_command_queue_properties, cl_bool, cl_command_queue_properties*>::switch_fn;
|
||||
cl_mem (CL_API_CALL*clCreateBuffer)(cl_context, cl_mem_flags, size_t, void*, cl_int*) = opencl_fn5<OPENCL_FN_clCreateBuffer, cl_mem, cl_context, cl_mem_flags, size_t, void*, cl_int*>::switch_fn;
|
||||
cl_mem (CL_API_CALL*clCreateSubBuffer)(cl_mem, cl_mem_flags, cl_buffer_create_type, const void*, cl_int*) = opencl_fn5<OPENCL_FN_clCreateSubBuffer, cl_mem, cl_mem, cl_mem_flags, cl_buffer_create_type, const void*, cl_int*>::switch_fn;
|
||||
cl_mem (CL_API_CALL*clCreateImage2D)(cl_context, cl_mem_flags, const cl_image_format*, size_t, size_t, size_t, void*, cl_int*) = opencl_fn8<OPENCL_FN_clCreateImage2D, cl_mem, cl_context, cl_mem_flags, const cl_image_format*, size_t, size_t, size_t, void*, cl_int*>::switch_fn;
|
||||
cl_mem (CL_API_CALL*clCreateImage3D)(cl_context, cl_mem_flags, const cl_image_format*, size_t, size_t, size_t, size_t, size_t, void*, cl_int*) = opencl_fn10<OPENCL_FN_clCreateImage3D, cl_mem, cl_context, cl_mem_flags, const cl_image_format*, size_t, size_t, size_t, size_t, size_t, void*, cl_int*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clRetainMemObject)(cl_mem) = opencl_fn1<OPENCL_FN_clRetainMemObject, cl_int, cl_mem>::switch_fn;
|
||||
cl_int (CL_API_CALL*clReleaseMemObject)(cl_mem) = opencl_fn1<OPENCL_FN_clReleaseMemObject, cl_int, cl_mem>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetSupportedImageFormats)(cl_context, cl_mem_flags, cl_mem_object_type, cl_uint, cl_image_format*, cl_uint*) = opencl_fn6<OPENCL_FN_clGetSupportedImageFormats, cl_int, cl_context, cl_mem_flags, cl_mem_object_type, cl_uint, cl_image_format*, cl_uint*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetMemObjectInfo)(cl_mem, cl_mem_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetMemObjectInfo, cl_int, cl_mem, cl_mem_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetImageInfo)(cl_mem, cl_image_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetImageInfo, cl_int, cl_mem, cl_image_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clSetMemObjectDestructorCallback)(cl_mem, void (CL_CALLBACK*) (cl_mem, void*), void*) = opencl_fn3<OPENCL_FN_clSetMemObjectDestructorCallback, cl_int, cl_mem, void (CL_CALLBACK*) (cl_mem, void*), void*>::switch_fn;
|
||||
cl_sampler (CL_API_CALL*clCreateSampler)(cl_context, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*) = opencl_fn5<OPENCL_FN_clCreateSampler, cl_sampler, cl_context, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clRetainSampler)(cl_sampler) = opencl_fn1<OPENCL_FN_clRetainSampler, cl_int, cl_sampler>::switch_fn;
|
||||
cl_int (CL_API_CALL*clReleaseSampler)(cl_sampler) = opencl_fn1<OPENCL_FN_clReleaseSampler, cl_int, cl_sampler>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetSamplerInfo)(cl_sampler, cl_sampler_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetSamplerInfo, cl_int, cl_sampler, cl_sampler_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_program (CL_API_CALL*clCreateProgramWithSource)(cl_context, cl_uint, const char**, const size_t*, cl_int*) = opencl_fn5<OPENCL_FN_clCreateProgramWithSource, cl_program, cl_context, cl_uint, const char**, const size_t*, cl_int*>::switch_fn;
|
||||
cl_program (CL_API_CALL*clCreateProgramWithBinary)(cl_context, cl_uint, const cl_device_id*, const size_t*, const unsigned char**, cl_int*, cl_int*) = opencl_fn7<OPENCL_FN_clCreateProgramWithBinary, cl_program, cl_context, cl_uint, const cl_device_id*, const size_t*, const unsigned char**, cl_int*, cl_int*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clRetainProgram)(cl_program) = opencl_fn1<OPENCL_FN_clRetainProgram, cl_int, cl_program>::switch_fn;
|
||||
cl_int (CL_API_CALL*clReleaseProgram)(cl_program) = opencl_fn1<OPENCL_FN_clReleaseProgram, cl_int, cl_program>::switch_fn;
|
||||
cl_int (CL_API_CALL*clBuildProgram)(cl_program, cl_uint, const cl_device_id*, const char*, void (CL_CALLBACK*) (cl_program, void*), void*) = opencl_fn6<OPENCL_FN_clBuildProgram, cl_int, cl_program, cl_uint, const cl_device_id*, const char*, void (CL_CALLBACK*) (cl_program, void*), void*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clUnloadCompiler)() = opencl_fn0<OPENCL_FN_clUnloadCompiler, cl_int>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetProgramInfo)(cl_program, cl_program_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetProgramInfo, cl_int, cl_program, cl_program_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetProgramBuildInfo)(cl_program, cl_device_id, cl_program_build_info, size_t, void*, size_t*) = opencl_fn6<OPENCL_FN_clGetProgramBuildInfo, cl_int, cl_program, cl_device_id, cl_program_build_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_kernel (CL_API_CALL*clCreateKernel)(cl_program, const char*, cl_int*) = opencl_fn3<OPENCL_FN_clCreateKernel, cl_kernel, cl_program, const char*, cl_int*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clCreateKernelsInProgram)(cl_program, cl_uint, cl_kernel*, cl_uint*) = opencl_fn4<OPENCL_FN_clCreateKernelsInProgram, cl_int, cl_program, cl_uint, cl_kernel*, cl_uint*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clRetainKernel)(cl_kernel) = opencl_fn1<OPENCL_FN_clRetainKernel, cl_int, cl_kernel>::switch_fn;
|
||||
cl_int (CL_API_CALL*clReleaseKernel)(cl_kernel) = opencl_fn1<OPENCL_FN_clReleaseKernel, cl_int, cl_kernel>::switch_fn;
|
||||
cl_int (CL_API_CALL*clSetKernelArg)(cl_kernel, cl_uint, size_t, const void*) = opencl_fn4<OPENCL_FN_clSetKernelArg, cl_int, cl_kernel, cl_uint, size_t, const void*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetKernelInfo)(cl_kernel, cl_kernel_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetKernelInfo, cl_int, cl_kernel, cl_kernel_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetKernelWorkGroupInfo)(cl_kernel, cl_device_id, cl_kernel_work_group_info, size_t, void*, size_t*) = opencl_fn6<OPENCL_FN_clGetKernelWorkGroupInfo, cl_int, cl_kernel, cl_device_id, cl_kernel_work_group_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clWaitForEvents)(cl_uint, const cl_event*) = opencl_fn2<OPENCL_FN_clWaitForEvents, cl_int, cl_uint, const cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetEventInfo)(cl_event, cl_event_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetEventInfo, cl_int, cl_event, cl_event_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_event (CL_API_CALL*clCreateUserEvent)(cl_context, cl_int*) = opencl_fn2<OPENCL_FN_clCreateUserEvent, cl_event, cl_context, cl_int*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clRetainEvent)(cl_event) = opencl_fn1<OPENCL_FN_clRetainEvent, cl_int, cl_event>::switch_fn;
|
||||
cl_int (CL_API_CALL*clReleaseEvent)(cl_event) = opencl_fn1<OPENCL_FN_clReleaseEvent, cl_int, cl_event>::switch_fn;
|
||||
cl_int (CL_API_CALL*clSetUserEventStatus)(cl_event, cl_int) = opencl_fn2<OPENCL_FN_clSetUserEventStatus, cl_int, cl_event, cl_int>::switch_fn;
|
||||
cl_int (CL_API_CALL*clSetEventCallback)(cl_event, cl_int, void (CL_CALLBACK*) (cl_event, cl_int, void*), void*) = opencl_fn4<OPENCL_FN_clSetEventCallback, cl_int, cl_event, cl_int, void (CL_CALLBACK*) (cl_event, cl_int, void*), void*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clGetEventProfilingInfo)(cl_event, cl_profiling_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetEventProfilingInfo, cl_int, cl_event, cl_profiling_info, size_t, void*, size_t*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clFlush)(cl_command_queue) = opencl_fn1<OPENCL_FN_clFlush, cl_int, cl_command_queue>::switch_fn;
|
||||
cl_int (CL_API_CALL*clFinish)(cl_command_queue) = opencl_fn1<OPENCL_FN_clFinish, cl_int, cl_command_queue>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueReadBuffer)(cl_command_queue, cl_mem, cl_bool, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueReadBuffer, cl_int, cl_command_queue, cl_mem, cl_bool, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueReadBufferRect)(cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*) = opencl_fn14<OPENCL_FN_clEnqueueReadBufferRect, cl_int, cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueWriteBuffer)(cl_command_queue, cl_mem, cl_bool, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueWriteBuffer, cl_int, cl_command_queue, cl_mem, cl_bool, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueWriteBufferRect)(cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*) = opencl_fn14<OPENCL_FN_clEnqueueWriteBufferRect, cl_int, cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueCopyBuffer)(cl_command_queue, cl_mem, cl_mem, size_t, size_t, size_t, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueCopyBuffer, cl_int, cl_command_queue, cl_mem, cl_mem, size_t, size_t, size_t, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueCopyBufferRect)(cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, cl_uint, const cl_event*, cl_event*) = opencl_fn13<OPENCL_FN_clEnqueueCopyBufferRect, cl_int, cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueReadImage)(cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*) = opencl_fn11<OPENCL_FN_clEnqueueReadImage, cl_int, cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueWriteImage)(cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*) = opencl_fn11<OPENCL_FN_clEnqueueWriteImage, cl_int, cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueCopyImage)(cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueCopyImage, cl_int, cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueCopyImageToBuffer)(cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, size_t, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueCopyImageToBuffer, cl_int, cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, size_t, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueCopyBufferToImage)(cl_command_queue, cl_mem, cl_mem, size_t, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueCopyBufferToImage, cl_int, cl_command_queue, cl_mem, cl_mem, size_t, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
void* (CL_API_CALL*clEnqueueMapBuffer)(cl_command_queue, cl_mem, cl_bool, cl_map_flags, size_t, size_t, cl_uint, const cl_event*, cl_event*, cl_int*) = opencl_fn10<OPENCL_FN_clEnqueueMapBuffer, void*, cl_command_queue, cl_mem, cl_bool, cl_map_flags, size_t, size_t, cl_uint, const cl_event*, cl_event*, cl_int*>::switch_fn;
|
||||
void* (CL_API_CALL*clEnqueueMapImage)(cl_command_queue, cl_mem, cl_bool, cl_map_flags, const size_t*, const size_t*, size_t*, size_t*, cl_uint, const cl_event*, cl_event*, cl_int*) = opencl_fn12<OPENCL_FN_clEnqueueMapImage, void*, cl_command_queue, cl_mem, cl_bool, cl_map_flags, const size_t*, const size_t*, size_t*, size_t*, cl_uint, const cl_event*, cl_event*, cl_int*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueUnmapMemObject)(cl_command_queue, cl_mem, void*, cl_uint, const cl_event*, cl_event*) = opencl_fn6<OPENCL_FN_clEnqueueUnmapMemObject, cl_int, cl_command_queue, cl_mem, void*, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueNDRangeKernel)(cl_command_queue, cl_kernel, cl_uint, const size_t*, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueNDRangeKernel, cl_int, cl_command_queue, cl_kernel, cl_uint, const size_t*, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueTask)(cl_command_queue, cl_kernel, cl_uint, const cl_event*, cl_event*) = opencl_fn5<OPENCL_FN_clEnqueueTask, cl_int, cl_command_queue, cl_kernel, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueNativeKernel)(cl_command_queue, void (CL_CALLBACK*) (void*), void*, size_t, cl_uint, const cl_mem*, const void**, cl_uint, const cl_event*, cl_event*) = opencl_fn10<OPENCL_FN_clEnqueueNativeKernel, cl_int, cl_command_queue, void (CL_CALLBACK*) (void*), void*, size_t, cl_uint, const cl_mem*, const void**, cl_uint, const cl_event*, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueMarker)(cl_command_queue, cl_event*) = opencl_fn2<OPENCL_FN_clEnqueueMarker, cl_int, cl_command_queue, cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueWaitForEvents)(cl_command_queue, cl_uint, const cl_event*) = opencl_fn3<OPENCL_FN_clEnqueueWaitForEvents, cl_int, cl_command_queue, cl_uint, const cl_event*>::switch_fn;
|
||||
cl_int (CL_API_CALL*clEnqueueBarrier)(cl_command_queue) = opencl_fn1<OPENCL_FN_clEnqueueBarrier, cl_int, cl_command_queue>::switch_fn;
|
||||
void* (CL_API_CALL*clGetExtensionFunctionAddress)(const char*) = opencl_fn1<OPENCL_FN_clGetExtensionFunctionAddress, void*, const char*>::switch_fn;
|
||||
|
||||
// generated by parser_cl.py
|
||||
void* opencl_fn_ptrs[] = {
|
||||
&clGetPlatformIDs,
|
||||
&clGetPlatformInfo,
|
||||
&clGetDeviceIDs,
|
||||
&clGetDeviceInfo,
|
||||
&clCreateContext,
|
||||
&clCreateContextFromType,
|
||||
&clRetainContext,
|
||||
&clReleaseContext,
|
||||
&clGetContextInfo,
|
||||
&clCreateCommandQueue,
|
||||
&clRetainCommandQueue,
|
||||
&clReleaseCommandQueue,
|
||||
&clGetCommandQueueInfo,
|
||||
&clSetCommandQueueProperty,
|
||||
&clCreateBuffer,
|
||||
&clCreateSubBuffer,
|
||||
&clCreateImage2D,
|
||||
&clCreateImage3D,
|
||||
&clRetainMemObject,
|
||||
&clReleaseMemObject,
|
||||
&clGetSupportedImageFormats,
|
||||
&clGetMemObjectInfo,
|
||||
&clGetImageInfo,
|
||||
&clSetMemObjectDestructorCallback,
|
||||
&clCreateSampler,
|
||||
&clRetainSampler,
|
||||
&clReleaseSampler,
|
||||
&clGetSamplerInfo,
|
||||
&clCreateProgramWithSource,
|
||||
&clCreateProgramWithBinary,
|
||||
&clRetainProgram,
|
||||
&clReleaseProgram,
|
||||
&clBuildProgram,
|
||||
&clUnloadCompiler,
|
||||
&clGetProgramInfo,
|
||||
&clGetProgramBuildInfo,
|
||||
&clCreateKernel,
|
||||
&clCreateKernelsInProgram,
|
||||
&clRetainKernel,
|
||||
&clReleaseKernel,
|
||||
&clSetKernelArg,
|
||||
&clGetKernelInfo,
|
||||
&clGetKernelWorkGroupInfo,
|
||||
&clWaitForEvents,
|
||||
&clGetEventInfo,
|
||||
&clCreateUserEvent,
|
||||
&clRetainEvent,
|
||||
&clReleaseEvent,
|
||||
&clSetUserEventStatus,
|
||||
&clSetEventCallback,
|
||||
&clGetEventProfilingInfo,
|
||||
&clFlush,
|
||||
&clFinish,
|
||||
&clEnqueueReadBuffer,
|
||||
&clEnqueueReadBufferRect,
|
||||
&clEnqueueWriteBuffer,
|
||||
&clEnqueueWriteBufferRect,
|
||||
&clEnqueueCopyBuffer,
|
||||
&clEnqueueCopyBufferRect,
|
||||
&clEnqueueReadImage,
|
||||
&clEnqueueWriteImage,
|
||||
&clEnqueueCopyImage,
|
||||
&clEnqueueCopyImageToBuffer,
|
||||
&clEnqueueCopyBufferToImage,
|
||||
&clEnqueueMapBuffer,
|
||||
&clEnqueueMapImage,
|
||||
&clEnqueueUnmapMemObject,
|
||||
&clEnqueueNDRangeKernel,
|
||||
&clEnqueueTask,
|
||||
&clEnqueueNativeKernel,
|
||||
&clEnqueueMarker,
|
||||
&clEnqueueWaitForEvents,
|
||||
&clEnqueueBarrier,
|
||||
&clGetExtensionFunctionAddress,
|
||||
};
|
Reference in New Issue
Block a user