summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Ashbaugh <ben.ashbaugh@intel.com>2020-07-24 15:15:44 -0700
committerAlastair Murray <alastairmurray42@gmail.com>2020-07-29 20:08:30 +0100
commit14ff4add11cb6d697eaa9111b652e85c0337e549 (patch)
treed82e4304a5e42b0c10d5fbb3c9a184dc7072b37a
parentdab00ce9599e4a8fe7bd2f8594490b234e3b3bb1 (diff)
downloadOpenCL-Headers-14ff4add11cb6d697eaa9111b652e85c0337e549.tar.gz
update ICD dispatch table with clSetContextDestructorCallback
-rw-r--r--CL/cl_icd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/CL/cl_icd.h b/CL/cl_icd.h
index 8c74724..b41ee1e 100644
--- a/CL/cl_icd.h
+++ b/CL/cl_icd.h
@@ -163,10 +163,16 @@ typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateImageWithProperties)(
const cl_image_format *image_format, const cl_image_desc *image_desc,
void *host_ptr, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_3_0;
+typedef CL_API_ENTRY cl_int(CL_API_CALL* clSetContextDestructorCallback)(
+ cl_context context,
+ void(CL_CALLBACK* pfn_notify)(cl_context context, void* user_data),
+ void* user_data) CL_API_SUFFIX__VERSION_3_0;
+
#else
typedef void *cl_api_clCreateBufferWithProperties;
typedef void *cl_api_clCreateImageWithProperties;
+typedef void *cl_api_clSetContextDestructorCallback;
#endif
@@ -1277,6 +1283,7 @@ typedef struct _cl_icd_dispatch {
/* OpenCL 3.0 */
cl_api_clCreateBufferWithProperties clCreateBufferWithProperties;
cl_api_clCreateImageWithProperties clCreateImageWithProperties;
+ cl_api_clSetContextDestructorCallback clSetContextDestructorCallback;
} cl_icd_dispatch;