Package org.lwjgl.opencl
Class KHRExternalMemory
java.lang.Object
org.lwjgl.opencl.KHRExternalMemory
Native bindings to the khr_external_memory extension.
This extension defines a generic mechanism to share buffer and image objects between OpenCL and many other APIs.
In particular, the cl_khr_external_memory extension defines:
- Optional properties to import external memory exported by other APIs into OpenCL for a set of devices.
- Routines to explicitly hand off memory ownership between OpenCL and other APIs.
Other related extensions define specific external memory types that may be imported into OpenCL.
Requires CL30.
-
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
Modifier and TypeMethodDescriptionstatic intclEnqueueAcquireExternalMemObjectsKHR(long command_queue, org.lwjgl.PointerBuffer mem_objects, @Nullable org.lwjgl.PointerBuffer event_wait_list, @Nullable org.lwjgl.PointerBuffer event) static intclEnqueueReleaseExternalMemObjectsKHR(long command_queue, org.lwjgl.PointerBuffer mem_objects, @Nullable org.lwjgl.PointerBuffer event_wait_list, @Nullable org.lwjgl.PointerBuffer event) static intnclEnqueueAcquireExternalMemObjectsKHR(long command_queue, int num_mem_objects, long mem_objects, int num_events_in_wait_list, long event_wait_list, long event) Unsafe version of:EnqueueAcquireExternalMemObjectsKHRstatic intnclEnqueueReleaseExternalMemObjectsKHR(long command_queue, int num_mem_objects, long mem_objects, int num_events_in_wait_list, long event_wait_list, long event) Unsafe version of:EnqueueReleaseExternalMemObjectsKHR
-
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:
-
-
Method Details
-
nclEnqueueAcquireExternalMemObjectsKHR
public static int nclEnqueueAcquireExternalMemObjectsKHR(long command_queue, int num_mem_objects, long mem_objects, int num_events_in_wait_list, long event_wait_list, long event) Unsafe version of:EnqueueAcquireExternalMemObjectsKHR- Parameters:
num_events_in_wait_list- the number of events inevent_wait_list
-
clEnqueueAcquireExternalMemObjectsKHR
public static int clEnqueueAcquireExternalMemObjectsKHR(long command_queue, org.lwjgl.PointerBuffer mem_objects, @Nullable org.lwjgl.PointerBuffer event_wait_list, @Nullable org.lwjgl.PointerBuffer event) - Parameters:
event_wait_list- a list of events that need to complete before this particular command can be executed. Ifevent_wait_listisNULL, then this particular command does not wait on any event to complete. The events specified inevent_wait_listact as synchronization points. The context associated with events inevent_wait_listandcommand_queuemust be the same.event- Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.eventcan beNULLin which case it will not be possible for the application to query the status of this command or queue a wait for this command to complete. If theevent_wait_listand theeventarguments are notNULL, the event argument should not refer to an element of theevent_wait_listarray.
-
nclEnqueueReleaseExternalMemObjectsKHR
public static int nclEnqueueReleaseExternalMemObjectsKHR(long command_queue, int num_mem_objects, long mem_objects, int num_events_in_wait_list, long event_wait_list, long event) Unsafe version of:EnqueueReleaseExternalMemObjectsKHR- Parameters:
num_events_in_wait_list- the number of events inevent_wait_list
-
clEnqueueReleaseExternalMemObjectsKHR
public static int clEnqueueReleaseExternalMemObjectsKHR(long command_queue, org.lwjgl.PointerBuffer mem_objects, @Nullable org.lwjgl.PointerBuffer event_wait_list, @Nullable org.lwjgl.PointerBuffer event) - Parameters:
event_wait_list- a list of events that need to complete before this particular command can be executed. Ifevent_wait_listisNULL, then this particular command does not wait on any event to complete. The events specified inevent_wait_listact as synchronization points. The context associated with events inevent_wait_listandcommand_queuemust be the same.event- Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.eventcan beNULLin which case it will not be possible for the application to query the status of this command or queue a wait for this command to complete. If theevent_wait_listand theeventarguments are notNULL, the event argument should not refer to an element of theevent_wait_listarray.
-