Top Description Fields Constructors Methods
org.lwjgl.opencl

public Class KHRExternalMemory

extends Object
Class Inheritance
Imports
javax.annotation.*, org.lwjgl.*, org.lwjgl.system.*

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:

Other related extensions define specific external memory types that may be imported into OpenCL.

Requires CL30.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
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.

public static final int
public static final int
public static final int
CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHR

External memory handle type added by cl_khr_external_memory_dma_buf.

public static final int
CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_FD_KHR

External memory handle type added by cl_khr_external_memory_opaque_fd.

public static final int
CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHR

External memory handle types added by cl_khr_external_memory_win32.

public static final int
CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KMT_KHR

External memory handle types added by cl_khr_external_memory_win32.

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.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
clEnqueueAcquireExternalMemObjectsKHR(long command_queue, PointerBuffer mem_objects, PointerBuffer
a list of events that need to complete before this particular command can be executed. If event_wait_list is NULL, then this particular command does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in event_wait_list and command_queue must be the same.
event_wait_list
,
PointerBuffer
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. event can be NULL in 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 the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the event_wait_list array.
event
)

public static int
clEnqueueReleaseExternalMemObjectsKHR(long command_queue, PointerBuffer mem_objects, PointerBuffer
a list of events that need to complete before this particular command can be executed. If event_wait_list is NULL, then this particular command does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in event_wait_list and command_queue must be the same.
event_wait_list
,
PointerBuffer
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. event can be NULL in 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 the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the event_wait_list array.
event
)

public static int
nclEnqueueAcquireExternalMemObjectsKHR(long command_queue, int num_mem_objects, long mem_objects, int
the number of events in event_wait_list
num_events_in_wait_list
,
long event_wait_list, long event)

Unsafe version of: EnqueueAcquireExternalMemObjectsKHR

public static int
nclEnqueueReleaseExternalMemObjectsKHR(long command_queue, int num_mem_objects, long mem_objects, int
the number of events in event_wait_list
num_events_in_wait_list
,
long event_wait_list, long event)

Unsafe version of: EnqueueReleaseExternalMemObjectsKHR

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CL_COMMAND_ACQUIRE_EXTERNAL_MEM_OBJECTS_KHRback to summary
public static final int CL_COMMAND_ACQUIRE_EXTERNAL_MEM_OBJECTS_KHR

New return values from GetEventInfo when param_name is EVENT_COMMAND_TYPE.

CL_COMMAND_RELEASE_EXTERNAL_MEM_OBJECTS_KHRback to summary
public static final int CL_COMMAND_RELEASE_EXTERNAL_MEM_OBJECTS_KHR

New return values from GetEventInfo when param_name is EVENT_COMMAND_TYPE.

CL_DEVICE_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHRback to summary
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.

CL_DEVICE_HANDLE_LIST_END_KHRback to summary
public static final int CL_DEVICE_HANDLE_LIST_END_KHR

New properties accepted as properties to CreateBufferWithProperties and CreateImageWithProperties.

CL_DEVICE_HANDLE_LIST_KHRback to summary
public static final int CL_DEVICE_HANDLE_LIST_KHR

New properties accepted as properties to CreateBufferWithProperties and CreateImageWithProperties.

CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHRback to summary
public static final int CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHR

External memory handle type added by cl_khr_external_memory_dma_buf.

CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_FD_KHRback to summary
public static final int CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_FD_KHR

External memory handle type added by cl_khr_external_memory_opaque_fd.

CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHRback to summary
public static final int CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHR

External memory handle types added by cl_khr_external_memory_win32.

CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KMT_KHRback to summary
public static final int CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KMT_KHR

External memory handle types added by cl_khr_external_memory_win32.

CL_PLATFORM_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHRback to summary
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.

Constructor Detail

KHRExternalMemoryback to summary
protected KHRExternalMemory()

Method Detail

clEnqueueAcquireExternalMemObjectsKHRback to summary
public static int clEnqueueAcquireExternalMemObjectsKHR(long command_queue, PointerBuffer mem_objects, PointerBuffer event_wait_list, PointerBuffer event)
Parameters
event_wait_list:PointerBuffer

a list of events that need to complete before this particular command can be executed. If event_wait_list is NULL, then this particular command does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in event_wait_list and command_queue must be the same.

event:PointerBuffer

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. event can be NULL in 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 the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the event_wait_list array.

Annotations
@NativeType:cl_int
clEnqueueReleaseExternalMemObjectsKHRback to summary
public static int clEnqueueReleaseExternalMemObjectsKHR(long command_queue, PointerBuffer mem_objects, PointerBuffer event_wait_list, PointerBuffer event)
Parameters
event_wait_list:PointerBuffer

a list of events that need to complete before this particular command can be executed. If event_wait_list is NULL, then this particular command does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in event_wait_list and command_queue must be the same.

event:PointerBuffer

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. event can be NULL in 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 the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the event_wait_list array.

Annotations
@NativeType:cl_int
nclEnqueueAcquireExternalMemObjectsKHRback to summary
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:int

the number of events in event_wait_list

nclEnqueueReleaseExternalMemObjectsKHRback to summary
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:int

the number of events in event_wait_list