Class KHRExternalSemaphore

java.lang.Object
org.lwjgl.opencl.KHRExternalSemaphore

public final class KHRExternalSemaphore extends Object
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_khr for specifying properties of external semaphores to be imported or exported.
  • New attributes that can be passed as part of cl_semaphore_info_khr for specifying properties of external semaphores to be exported.
  • An extension to CreateSemaphoreWithPropertiesKHR to 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 Details

    • CL_PLATFORM_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR

      public static final int CL_PLATFORM_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR
      Accepted value for the param_name parameter to GetPlatformInfo to 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_KHR
      Accepted value for the param_name parameter to GetDeviceInfo to 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
      New properties accepted as properties to CreateBufferWithProperties and CreateImageWithProperties.
      See Also:
    • CL_DEVICE_HANDLE_LIST_END_KHR

      public static final int CL_DEVICE_HANDLE_LIST_END_KHR
      New properties accepted as properties to CreateBufferWithProperties and CreateImageWithProperties.
      See Also:
    • CL_COMMAND_ACQUIRE_EXTERNAL_MEM_OBJECTS_KHR

      public static final int CL_COMMAND_ACQUIRE_EXTERNAL_MEM_OBJECTS_KHR
      New return values from GetEventInfo when param_name is EVENT_COMMAND_TYPE.
      See Also:
    • CL_COMMAND_RELEASE_EXTERNAL_MEM_OBJECTS_KHR

      public static final int CL_COMMAND_RELEASE_EXTERNAL_MEM_OBJECTS_KHR
      New return values from GetEventInfo when param_name is EVENT_COMMAND_TYPE.
      See Also:
    • CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHR

      public static final int CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHR
      External memory handle type added by cl_khr_external_memory_dma_buf.
      See Also:
    • CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_FD_KHR

      public static final int CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_FD_KHR
      External memory handle type added by cl_khr_external_memory_opaque_fd.
      See Also:
    • CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHR

      public static final int CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHR
      External memory handle types added by cl_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_KHR
      External memory handle types added by cl_khr_external_memory_win32.
      See Also: