Package org.lwjgl.opencl
Class KHRExternalSemaphore
java.lang.Object
org.lwjgl.opencl.KHRExternalSemaphore
Native bindings to the khr_external_semaphore extension.
cl_khr_semaphore introduced 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 CL12 and the khr_semaphore extension.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intAccepted value for theparam_nameparameter toGetDeviceInfoto query external memory handle types that may be imported by an OpenCL device.static final intstatic final intstatic final intExternal memory handle type added bycl_khr_external_memory_dma_buf.static final intExternal memory handle type added bycl_khr_external_memory_opaque_fd.static final intExternal memory handle types added bycl_khr_external_memory_win32.static final intExternal memory handle types added bycl_khr_external_memory_win32.static final intAccepted value for theparam_nameparameter toGetPlatformInfoto query external memory handle types that may be imported by all devices in an OpenCL platform. -
Method Summary
-
Field Details
-
CL_PLATFORM_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR
public static final int CL_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.- See Also:
-
CL_DEVICE_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR
public static final int CL_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.- See Also:
-
CL_DEVICE_HANDLE_LIST_KHR
public static final int CL_DEVICE_HANDLE_LIST_KHR- See Also:
-
CL_DEVICE_HANDLE_LIST_END_KHR
public static final int CL_DEVICE_HANDLE_LIST_END_KHR- See Also:
-
CL_COMMAND_ACQUIRE_EXTERNAL_MEM_OBJECTS_KHR
public static final int CL_COMMAND_ACQUIRE_EXTERNAL_MEM_OBJECTS_KHR- See Also:
-
CL_COMMAND_RELEASE_EXTERNAL_MEM_OBJECTS_KHR
public static final int CL_COMMAND_RELEASE_EXTERNAL_MEM_OBJECTS_KHR- See Also:
-
CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHR
public static final int CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHRExternal memory handle type added bycl_khr_external_memory_dma_buf.- See Also:
-
CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_FD_KHR
public static final int CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_FD_KHRExternal memory handle type added bycl_khr_external_memory_opaque_fd.- See Also:
-
CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHR
public static final int CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHRExternal memory handle types added bycl_khr_external_memory_win32.- See Also:
-
CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KMT_KHR
public static final int CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KMT_KHRExternal memory handle types added bycl_khr_external_memory_win32.- See Also:
-