Package org.lwjgl.opencl
Class KHREGLImage
java.lang.Object
org.lwjgl.opencl.KHREGLImage
Native bindings to the khr_egl_image extension.
This extension provides a mechanism for creating derived resources, such as OpenCL image objects, from EGLImages
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Command types.static final int
Command types.static final int
Error Codesstatic final int
Error Codes -
Method Summary
Modifier and TypeMethodDescriptionstatic long
clCreateFromEGLImageKHR
(long context, long display, long image, long flags, PointerBuffer properties, int[] errcode_ret) Array version of:CreateFromEGLImageKHR
static long
clCreateFromEGLImageKHR
(long context, long display, long image, long flags, PointerBuffer properties, IntBuffer errcode_ret) Creates anEGLImage
target of typecl_mem
from theEGLImage
source provided asimage
.static int
clEnqueueAcquireEGLObjectsKHR
(long command_queue, PointerBuffer mem_objects, PointerBuffer event_wait_list, PointerBuffer event) Acquires OpenCL memory objects that have been created from EGL resources.static int
clEnqueueReleaseEGLObjectsKHR
(long command_queue, long mem_object, PointerBuffer event_wait_list, PointerBuffer event) Releases OpenCL memory objects that have been created from EGL resources.static int
clEnqueueReleaseEGLObjectsKHR
(long command_queue, PointerBuffer mem_objects, PointerBuffer event_wait_list, PointerBuffer event) Releases OpenCL memory objects that have been created from EGL resources.static long
nclCreateFromEGLImageKHR
(long context, long display, long image, long flags, long properties, long errcode_ret) Unsafe version of:CreateFromEGLImageKHR
static int
nclEnqueueAcquireEGLObjectsKHR
(long command_queue, int num_objects, long mem_objects, int num_events_in_wait_list, long event_wait_list, long event) Unsafe version of:EnqueueAcquireEGLObjectsKHR
static int
nclEnqueueReleaseEGLObjectsKHR
(long command_queue, int num_objects, long mem_objects, int num_events_in_wait_list, long event_wait_list, long event) Unsafe version of:EnqueueReleaseEGLObjectsKHR
-
Field Details
-
CL_EGL_RESOURCE_NOT_ACQUIRED_KHR
public static final int CL_EGL_RESOURCE_NOT_ACQUIRED_KHRError Codes- See Also:
-
CL_INVALID_EGL_OBJECT_KHR
public static final int CL_INVALID_EGL_OBJECT_KHRError Codes- See Also:
-
CL_COMMAND_ACQUIRE_EGL_OBJECTS_KHR
public static final int CL_COMMAND_ACQUIRE_EGL_OBJECTS_KHRCommand types.- See Also:
-
CL_COMMAND_RELEASE_EGL_OBJECTS_KHR
public static final int CL_COMMAND_RELEASE_EGL_OBJECTS_KHRCommand types.- See Also:
-
-
Method Details
-
nclCreateFromEGLImageKHR
public static long nclCreateFromEGLImageKHR(long context, long display, long image, long flags, long properties, long errcode_ret) Unsafe version of:CreateFromEGLImageKHR
-
clCreateFromEGLImageKHR
public static long clCreateFromEGLImageKHR(long context, long display, long image, long flags, @Nullable PointerBuffer properties, @Nullable IntBuffer errcode_ret) Creates anEGLImage
target of typecl_mem
from theEGLImage
source provided asimage
.- Parameters:
display
- anEGLDisplay
image
- anEGLImageKHR
flags
- a bit-field that is used to specify usage information about the memory object being createdproperties
- a list of property names and their corresponding valueserrcode_ret
- will return an appropriate error code. Iferrcode_ret
isNULL
, no error code is returned.
-
nclEnqueueAcquireEGLObjectsKHR
public static int nclEnqueueAcquireEGLObjectsKHR(long command_queue, int num_objects, long mem_objects, int num_events_in_wait_list, long event_wait_list, long event) Unsafe version of:EnqueueAcquireEGLObjectsKHR
- Parameters:
num_objects
- the number of memory objects to be acquired inmem_objects
num_events_in_wait_list
- the number of events inevent_wait_list
-
clEnqueueAcquireEGLObjectsKHR
public static int clEnqueueAcquireEGLObjectsKHR(long command_queue, PointerBuffer mem_objects, @Nullable PointerBuffer event_wait_list, @Nullable PointerBuffer event) Acquires OpenCL memory objects that have been created from EGL resources. The EGL objects are acquired by the OpenCL context associated withcommand_queue
and can therefore be used by all command-queues associated with the OpenCL context.- Parameters:
command_queue
- a valid command-queuemem_objects
- a pointer to a list of OpenCL memory objects that were created from EGL resources, within the context associated withcommand_queue
event_wait_list
- a list of events that need to complete before this particular command can be executed. Ifevent_wait_list
isNULL
, then this particular command does not wait on any event to complete. The events specified inevent_wait_list
act as synchronization points. The context associated with events inevent_wait_list
andcommand_queue
must 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.event
can beNULL
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 theevent_wait_list
and theevent
arguments are notNULL
, the event argument should not refer to an element of theevent_wait_list
array.
-
nclEnqueueReleaseEGLObjectsKHR
public static int nclEnqueueReleaseEGLObjectsKHR(long command_queue, int num_objects, long mem_objects, int num_events_in_wait_list, long event_wait_list, long event) Unsafe version of:EnqueueReleaseEGLObjectsKHR
- Parameters:
num_objects
- the number of memory objects to be released inmem_objects
num_events_in_wait_list
- the number of events inevent_wait_list
-
clEnqueueReleaseEGLObjectsKHR
public static int clEnqueueReleaseEGLObjectsKHR(long command_queue, PointerBuffer mem_objects, @Nullable PointerBuffer event_wait_list, @Nullable PointerBuffer event) Releases OpenCL memory objects that have been created from EGL resources. The EGL objects are released by the OpenCL context associated withcommand_queue
.- Parameters:
command_queue
- a valid command-queuemem_objects
- a pointer to a list of OpenCL memory objects that were created from EGL resources, within the context associated withcommand_queue
event_wait_list
- a list of events that need to complete before this particular command can be executed. Ifevent_wait_list
isNULL
, then this particular command does not wait on any event to complete. The events specified inevent_wait_list
act as synchronization points. The context associated with events inevent_wait_list
andcommand_queue
must 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.event
can beNULL
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 theevent_wait_list
and theevent
arguments are notNULL
, the event argument should not refer to an element of theevent_wait_list
array.
-
clEnqueueReleaseEGLObjectsKHR
public static int clEnqueueReleaseEGLObjectsKHR(long command_queue, long mem_object, @Nullable PointerBuffer event_wait_list, @Nullable PointerBuffer event) Releases OpenCL memory objects that have been created from EGL resources. The EGL objects are released by the OpenCL context associated withcommand_queue
.- Parameters:
command_queue
- a valid command-queueevent_wait_list
- a list of events that need to complete before this particular command can be executed. Ifevent_wait_list
isNULL
, then this particular command does not wait on any event to complete. The events specified inevent_wait_list
act as synchronization points. The context associated with events inevent_wait_list
andcommand_queue
must 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.event
can beNULL
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 theevent_wait_list
and theevent
arguments are notNULL
, the event argument should not refer to an element of theevent_wait_list
array.
-
clCreateFromEGLImageKHR
public static long clCreateFromEGLImageKHR(long context, long display, long image, long flags, @Nullable PointerBuffer properties, @Nullable int[] errcode_ret) Array version of:CreateFromEGLImageKHR
-