Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class ARBCLEvent

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native 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_event OpenCL extension provides the complementary functionality of creating an OpenCL event object from an OpenGL fence sync object.

Requires OpenGL 3.2 or ARB_sync. Requires an OpenCL implementation supporting sharing event objects with OpenGL.

Field Summary

Modifier and TypeField and Description
public static final int
GL_SYNC_CL_EVENT_ARB

Returned in values for GetSynciv pname OBJECT_TYPE.

public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
glCreateSyncFromCLeventARB(long
a valid OpenCL context
context
,
long
a valid OpenCL event
event
,
int
must be 0 (placeholder for anticipated future extensions of sync object capabilities)
flags
)

Creates a linked sync object.

public static native long
nglCreateSyncFromCLeventARB(long context, long event, int flags)

Unsafe version of: CreateSyncFromCLeventARB

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_SYNC_CL_EVENT_ARBback to summary
public static final int GL_SYNC_CL_EVENT_ARB

Returned in values for GetSynciv pname OBJECT_TYPE.

GL_SYNC_CL_EVENT_COMPLETE_ARBback to summary
public static final int GL_SYNC_CL_EVENT_COMPLETE_ARB

Returned in values for GetSynciv pname SYNC_CONDITION.

Constructor Detail

ARBCLEventback to summary
protected ARBCLEvent()

Method Detail

glCreateSyncFromCLeventARBback to summary
public static long glCreateSyncFromCLeventARB(long context, long event, int flags)

Creates a linked sync object. context and event must be handles to a valid OpenCL context and a valid event in that context, respectively. context must 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 of event is CL_QUEUED, CL_SUBMITTED, or CL_RUNNING, the status of the linked sync object will be UNSIGNALED. When the status of event changes to CL_COMPLETE, the status of the linked sync object will become SIGNALED.

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:long

a valid OpenCL context

event:long

a valid OpenCL event

flags:int

must be 0 (placeholder for anticipated future extensions of sync object capabilities)

Annotations
@NativeType:GLsync
nglCreateSyncFromCLeventARBback to summary
public static native long nglCreateSyncFromCLeventARB(long context, long event, int flags)

Unsafe version of: CreateSyncFromCLeventARB