Package org.lwjgl.opencl
Class KHREGLEvent
- java.lang.Object
-
- org.lwjgl.opencl.KHREGLEvent
-
public class KHREGLEvent extends java.lang.ObjectNative bindings to the khr_egl_event extension.This extension allows creating OpenCL event objects linked to EGL fence sync objects, potentially improving efficiency of sharing images and buffers between the two APIs. The companion
EGL_KHR_cl_eventextension provides the complementary functionality of creating an EGL sync object from an OpenCL event object.
-
-
Field Summary
Fields Modifier and Type Field and Description static intCL_COMMAND_EGL_FENCE_SYNC_OBJECT_KHRReturned byGetEventInfowhen param_name isEVENT_COMMAND_TYPE.static intCL_INVALID_EGL_OBJECT_KHRReturned by clCreateEventFromEGLSyncKHR if sync is not a valid EGLSyncKHR handle created with respect to EGLDisplay display.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static longclCreateEventFromEGLSyncKHR(long context, long sync, long display, int[] errcode_ret)Array version of:CreateEventFromEGLSyncKHRstatic longclCreateEventFromEGLSyncKHR(long context, long sync, long display, java.nio.IntBuffer errcode_ret)Creates a linked event object.
-
-
-
Field Detail
-
CL_INVALID_EGL_OBJECT_KHR
public static final int CL_INVALID_EGL_OBJECT_KHR
Returned by clCreateEventFromEGLSyncKHR if sync is not a valid EGLSyncKHR handle created with respect to EGLDisplay display.- See Also:
- Constant Field Values
-
CL_COMMAND_EGL_FENCE_SYNC_OBJECT_KHR
public static final int CL_COMMAND_EGL_FENCE_SYNC_OBJECT_KHR
Returned byGetEventInfowhen param_name isEVENT_COMMAND_TYPE.- See Also:
- Constant Field Values
-
-
Method Detail
-
clCreateEventFromEGLSyncKHR
public static long clCreateEventFromEGLSyncKHR(long context, long sync, long display, java.nio.IntBuffer errcode_ret)Creates a linked event object.- Parameters:
context- a valid OpenCL contextsync- the name of a sync object of typeEGL15.EGL_SYNC_FENCEcreated with respect toEGLDisplay display.display- anEGLDisplayerrcode_ret- will return an appropriate error code. Iferrcode_retisNULL, no error code is returned.
-
clCreateEventFromEGLSyncKHR
public static long clCreateEventFromEGLSyncKHR(long context, long sync, long display, int[] errcode_ret)Array version of:CreateEventFromEGLSyncKHR
-
-