Class ARBCLEvent
- java.lang.Object
-
- org.lwjgl.opengl.ARBCLEvent
-
public class ARBCLEvent extends java.lang.ObjectNative bindings to the ARB_cl_event extension.This extension allows creating OpenGL sync objects linked to OpenCL event objects, potentially improving efficiency of sharing images and buffers between the two APIs. The companion
cl_khr_gl_eventOpenCL extension provides the complementary functionality of creating an OpenCL event object from an OpenGL fence sync object.Requires
OpenGL 3.2orARB_sync. Requires an OpenCL implementation supporting sharing event objects with OpenGL.
-
-
Field Summary
Fields Modifier and Type Field and Description static intGL_SYNC_CL_EVENT_ARBstatic intGL_SYNC_CL_EVENT_COMPLETE_ARB
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static longglCreateSyncFromCLeventARB(long context, long event, int flags)Creates a linked sync object.
-
-
-
Field Detail
-
GL_SYNC_CL_EVENT_ARB
public static final int GL_SYNC_CL_EVENT_ARB
- See Also:
- Constant Field Values
-
GL_SYNC_CL_EVENT_COMPLETE_ARB
public static final int GL_SYNC_CL_EVENT_COMPLETE_ARB
- See Also:
- Constant Field Values
-
-
Method Detail
-
glCreateSyncFromCLeventARB
public static long glCreateSyncFromCLeventARB(long context, long event, int flags)Creates a linked sync object.contextandeventmust be handles to a valid OpenCL context and a valid event in that context, respectively.contextmust support sharing with GL, and must have been created with respect to the current GL context, or to a share group including the current GL context.The status of such a sync object depends on
event. When the status ofeventisCL10.CL_QUEUED,CL10.CL_SUBMITTED, orCL10.CL_RUNNING, the status of the linked sync object will beUNSIGNALED. When the status ofeventchanges toCL10.CL_COMPLETE, the status of the linked sync object will becomeSIGNALED.Creating a linked sync object places a reference on the linked OpenCL event object. When the sync object is deleted, the reference will be removed from the event object.
- Parameters:
context- a valid OpenCL contextevent- a valid OpenCL eventflags- must be 0 (placeholder for anticipated future extensions of sync object capabilities)
-
-