Package org.lwjgl.opencl
Class KHRExternalMemory
- java.lang.Object
-
- org.lwjgl.opencl.KHRExternalMemory
-
public class KHRExternalMemory extends java.lang.ObjectNative 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_memoryextension 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
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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intclEnqueueAcquireExternalMemObjectsKHR(long command_queue, org.lwjgl.PointerBuffer mem_objects, org.lwjgl.PointerBuffer event_wait_list, org.lwjgl.PointerBuffer event)static intclEnqueueReleaseExternalMemObjectsKHR(long command_queue, org.lwjgl.PointerBuffer mem_objects, org.lwjgl.PointerBuffer event_wait_list, 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 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.
-
-
Method Detail
-
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.
-
-