Package org.lwjgl.opencl
Class KHRExternalSemaphore
- java.lang.Object
-
- org.lwjgl.opencl.KHRExternalSemaphore
-
public final class KHRExternalSemaphore extends java.lang.ObjectNative bindings to the khr_external_semaphore extension.cl_khr_semaphoreintroduced semaphores as a new type along with a set of APIs for create, release, retain, wait and signal operations on it. This extension defines APIs and mechanisms to share semaphores created in an external API by importing into and exporting from OpenCL.This extension defines:
- New attributes that can be passed as part of
cl_semaphore_properties_khrfor specifying properties of external semaphores to be imported or exported. - New attributes that can be passed as part of
cl_semaphore_info_khrfor specifying properties of external semaphores to be exported. - An extension to
CreateSemaphoreWithPropertiesKHRto accept external semaphore properties allowing to import or export an external semaphore into or from OpenCL. - Semaphore handle types required for importing and exporting semaphores.
- Modifications to Wait and Signal API behavior when dealing with external semaphores created from different handle types.
- API query exportable semaphores handles using specified handle type.
Other related extensions define specific external semaphores that may be imported into or exported from OpenCL.
Requires
CL12and thekhr_semaphoreextension. - New attributes that can be passed as part of
-
-
Field Summary
Fields Modifier and Type Field Description static intCL_COMMAND_ACQUIRE_EXTERNAL_MEM_OBJECTS_KHR
CL_COMMAND_RELEASE_EXTERNAL_MEM_OBJECTS_KHRstatic intCL_DEVICE_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHRAccepted value for theparam_nameparameter toGetDeviceInfoto query external memory handle types that may be imported by an OpenCL device.static intCL_DEVICE_HANDLE_LIST_END_KHR
CL_DEVICE_HANDLE_LIST_KHRstatic intCL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHRExternal memory handle type added bycl_khr_external_memory_dma_buf.static intCL_EXTERNAL_MEMORY_HANDLE_OPAQUE_FD_KHRExternal memory handle type added bycl_khr_external_memory_opaque_fd.static intCL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHR
CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KMT_KHRExternal memory handle types added bycl_khr_external_memory_win32.static intCL_PLATFORM_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHRAccepted value for theparam_nameparameter toGetPlatformInfoto query external memory handle types that may be imported by all devices in an OpenCL platform.
-
-
-
Field Detail
-
CL_PLATFORM_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR
Accepted value for theparam_nameparameter toGetPlatformInfoto query external memory handle types that may be imported by all devices in an OpenCL platform.
-
CL_DEVICE_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR
Accepted value for theparam_nameparameter toGetDeviceInfoto query external memory handle types that may be imported by an OpenCL device.
-
CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHR
External memory handle type added bycl_khr_external_memory_dma_buf.
-
CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_FD_KHR
External memory handle type added bycl_khr_external_memory_opaque_fd.
-
CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHR, CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KMT_KHR
External memory handle types added bycl_khr_external_memory_win32.
-
-