diff options
author | joshqti <127994991+joshqti@users.noreply.github.com> | 2023-12-12 09:15:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 09:15:37 -0800 |
commit | 2368105c0531069fe927989505de7d125ec58c55 (patch) | |
tree | 90a58a293cb356430e6ebe092cecb4d032275171 | |
parent | 8de09e8f07e3272da06e62358a8116c27d235036 (diff) | |
download | OpenCL-Headers-2368105c0531069fe927989505de7d125ec58c55.tar.gz |
updates extension headers for the latest XML file (#244)upstream/v2023.12.14
Add clReImportSemaphoreSyncFd
-rw-r--r-- | CL/cl_ext.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/CL/cl_ext.h b/CL/cl_ext.h index 1691373..7eddb47 100644 --- a/CL/cl_ext.h +++ b/CL/cl_ext.h @@ -1811,6 +1811,9 @@ typedef cl_uint cl_external_semaphore_handle_type_khr; #define CL_SEMAPHORE_EXPORT_HANDLE_TYPES_KHR 0x203F #define CL_SEMAPHORE_EXPORT_HANDLE_TYPES_LIST_END_KHR 0 +/* cl_semaphore_info_khr */ +#define CL_SEMAPHORE_EXPORTABLE_KHR 0x2054 + typedef cl_int CL_API_CALL clGetSemaphoreHandleForTypeKHR_t( @@ -1864,9 +1867,31 @@ clGetSemaphoreHandleForTypeKHR( #define CL_KHR_EXTERNAL_SEMAPHORE_SYNC_FD_EXTENSION_NAME \ "cl_khr_external_semaphore_sync_fd" +typedef cl_properties cl_semaphore_reimport_properties_khr; + /* cl_external_semaphore_handle_type_khr */ #define CL_SEMAPHORE_HANDLE_SYNC_FD_KHR 0x2058 + +typedef cl_int CL_API_CALL +clReImportSemaphoreSyncFdKHR_t( + cl_semaphore_khr sema_object, + cl_semaphore_reimport_properties_khr* reimport_props, + int fd); + +typedef clReImportSemaphoreSyncFdKHR_t * +clReImportSemaphoreSyncFdKHR_fn CL_API_SUFFIX__VERSION_3_0; + +#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) + +extern CL_API_ENTRY cl_int CL_API_CALL +clReImportSemaphoreSyncFdKHR( + cl_semaphore_khr sema_object, + cl_semaphore_reimport_properties_khr* reimport_props, + int fd) CL_API_SUFFIX__VERSION_3_0; + +#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ + /*************************************************************** * cl_khr_external_semaphore_win32 ***************************************************************/ |