public class KHREGLImage
extends java.lang.Object
This extension provides a mechanism for creating derived resources, such as OpenCL image objects, from EGLImages.
| Modifier and Type | Field and Description |
|---|---|
static int |
CL_COMMAND_ACQUIRE_EGL_OBJECTS_KHR
Command types.
|
static int |
CL_COMMAND_RELEASE_EGL_OBJECTS_KHR
Command types.
|
static int |
CL_EGL_RESOURCE_NOT_ACQUIRED_KHR
Error Codes
|
static int |
CL_INVALID_EGL_OBJECT_KHR
Error Codes
|
| Modifier and Type | Method and Description |
|---|---|
static long |
clCreateFromEGLImageKHR(long context,
long display,
long image,
long flags,
org.lwjgl.PointerBuffer properties,
int[] errcode_ret)
Array version of:
CreateFromEGLImageKHR |
static long |
clCreateFromEGLImageKHR(long context,
long display,
long image,
long flags,
org.lwjgl.PointerBuffer properties,
java.nio.IntBuffer errcode_ret)
Creates an
EGLImage target of type cl_mem from the EGLImage source provided as image. |
static int |
clEnqueueAcquireEGLObjectsKHR(long command_queue,
org.lwjgl.PointerBuffer mem_objects,
org.lwjgl.PointerBuffer event_wait_list,
org.lwjgl.PointerBuffer event)
Acquires OpenCL memory objects that have been created from EGL resources.
|
static int |
clEnqueueReleaseEGLObjectsKHR(long command_queue,
long mem_object,
org.lwjgl.PointerBuffer event_wait_list,
org.lwjgl.PointerBuffer event)
Releases OpenCL memory objects that have been created from EGL resources.
|
static int |
clEnqueueReleaseEGLObjectsKHR(long command_queue,
org.lwjgl.PointerBuffer mem_objects,
org.lwjgl.PointerBuffer event_wait_list,
org.lwjgl.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 |
public static final int CL_EGL_RESOURCE_NOT_ACQUIRED_KHR
public static final int CL_INVALID_EGL_OBJECT_KHR
public static final int CL_COMMAND_ACQUIRE_EGL_OBJECTS_KHR
public static final int CL_COMMAND_RELEASE_EGL_OBJECTS_KHR
public static long nclCreateFromEGLImageKHR(long context,
long display,
long image,
long flags,
long properties,
long errcode_ret)
CreateFromEGLImageKHRpublic static long clCreateFromEGLImageKHR(long context,
long display,
long image,
long flags,
@Nullable
org.lwjgl.PointerBuffer properties,
@Nullable
java.nio.IntBuffer errcode_ret)
EGLImage target of type cl_mem from the EGLImage source provided as image.display - an EGLDisplayimage - an EGLImageKHRflags - 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. If errcode_ret is NULL, no error code is returned.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)
EnqueueAcquireEGLObjectsKHRnum_objects - the number of memory objects to be acquired in mem_objectsnum_events_in_wait_list - the number of events in event_wait_listpublic static int clEnqueueAcquireEGLObjectsKHR(long command_queue,
org.lwjgl.PointerBuffer mem_objects,
@Nullable
org.lwjgl.PointerBuffer event_wait_list,
@Nullable
org.lwjgl.PointerBuffer event)
command_queue and can therefore be used by all command-queues associated with the OpenCL context.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 with command_queueevent_wait_list - 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 - 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.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)
EnqueueReleaseEGLObjectsKHRnum_objects - the number of memory objects to be released in mem_objectsnum_events_in_wait_list - the number of events in event_wait_listpublic static int clEnqueueReleaseEGLObjectsKHR(long command_queue,
org.lwjgl.PointerBuffer mem_objects,
@Nullable
org.lwjgl.PointerBuffer event_wait_list,
@Nullable
org.lwjgl.PointerBuffer event)
command_queue.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 with command_queueevent_wait_list - 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 - 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.public static int clEnqueueReleaseEGLObjectsKHR(long command_queue,
long mem_object,
@Nullable
org.lwjgl.PointerBuffer event_wait_list,
@Nullable
org.lwjgl.PointerBuffer event)
command_queue.command_queue - a valid command-queueevent_wait_list - 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 - 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.public static long clCreateFromEGLImageKHR(long context,
long display,
long image,
long flags,
@Nullable
org.lwjgl.PointerBuffer properties,
@Nullable
int[] errcode_ret)
CreateFromEGLImageKHRCopyright LWJGL. All Rights Reserved. License terms.