Top Description Fields Constructors Methods
org.lwjgl.opencl

public Class KHRGLEvent

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

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 and EnqueueReleaseGLObjects to implicitly guarantee synchronization with an OpenGL context bound in the same thread as the OpenCL context.

Field Summary

Modifier and TypeField and Description
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
clCreateEventFromGLsyncKHR(long
the OpenCL context in which to create the event object
context
,
long
the OpenGL fence sync object
sync
,
IntBuffer
will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
errcode_ret
)

Creates an OpenCL event object from an OpenGL fence sync object.

public static long
clCreateEventFromGLsyncKHR(long context, long sync, int[] errcode_ret)

Array version of: CreateEventFromGLsyncKHR

public static long
nclCreateEventFromGLsyncKHR(long context, long sync, long errcode_ret)

Unsafe version of: CreateEventFromGLsyncKHR

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHRback to summary
public static final int CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR

Returned by GetEventInfo when param_name is EVENT_COMMAND_TYPE.

Constructor Detail

KHRGLEventback to summary
protected KHRGLEvent()

Method Detail

clCreateEventFromGLsyncKHRback to summary
public static long clCreateEventFromGLsyncKHR(long context, long sync, IntBuffer errcode_ret)

Creates an OpenCL event object from an OpenGL fence sync object.

Parameters
context:long

the OpenCL context in which to create the event object

sync:long

the OpenGL fence sync object

errcode_ret:IntBuffer

will return an appropriate error code. If errcode_ret is NULL, no error code is returned.

Annotations
@NativeType:cl_event
clCreateEventFromGLsyncKHRback to summary
public static long clCreateEventFromGLsyncKHR(long context, long sync, int[] errcode_ret)

Array version of: CreateEventFromGLsyncKHR

Annotations
@NativeType:cl_event
nclCreateEventFromGLsyncKHRback to summary
public static long nclCreateEventFromGLsyncKHR(long context, long sync, long errcode_ret)

Unsafe version of: CreateEventFromGLsyncKHR