Package org.lwjgl.opencl
Class KHRGLEvent
- java.lang.Object
-
- org.lwjgl.opencl.KHRGLEvent
-
public class KHRGLEvent extends java.lang.Object
Native bindings to the khr_gl_event extension.This extension allows creating OpenCL event objects linked to OpenGL fence sync objects, potentially improving efficiency of sharing images and buffers between the two APIs. The companion
GL_ARB_cl_event
extension provides the complementary functionality of creating an OpenGL sync object from an OpenCL event object.In addition, this extension modifies the behavior of
EnqueueAcquireGLObjects
andEnqueueReleaseGLObjects
to implicitly guarantee synchronization with an OpenGL context bound in the same thread as the OpenCL context.
-
-
Field Summary
Fields Modifier and Type Field Description static int
CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
clCreateEventFromGLsyncKHR(long context, long sync, int[] errcode_ret)
Array version of:CreateEventFromGLsyncKHR
static long
clCreateEventFromGLsyncKHR(long context, long sync, java.nio.IntBuffer errcode_ret)
Creates an OpenCL event object from an OpenGL fence sync object.static long
nclCreateEventFromGLsyncKHR(long context, long sync, long errcode_ret)
Unsafe version of:CreateEventFromGLsyncKHR
-
-
-
Field Detail
-
CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR
public static final int CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR
- See Also:
- Constant Field Values
-
-
Method Detail
-
nclCreateEventFromGLsyncKHR
public static long nclCreateEventFromGLsyncKHR(long context, long sync, long errcode_ret)
Unsafe version of:CreateEventFromGLsyncKHR
-
clCreateEventFromGLsyncKHR
public static long clCreateEventFromGLsyncKHR(long context, long sync, @Nullable java.nio.IntBuffer errcode_ret)
Creates an OpenCL event object from an OpenGL fence sync object.- Parameters:
context
- the OpenCL context in which to create the event objectsync
- the OpenGL fence sync objecterrcode_ret
- will return an appropriate error code. Iferrcode_ret
isNULL
, no error code is returned.
-
clCreateEventFromGLsyncKHR
public static long clCreateEventFromGLsyncKHR(long context, long sync, @Nullable int[] errcode_ret)
Array version of:CreateEventFromGLsyncKHR
-
-