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. or ARB_sync. Requires an OpenCL implementation supporting sharing event objects with OpenGL.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_SYNC_CL_EVENT_ARB
Returned in |
| public static final int | GL_SYNC_CL_EVENT_COMPLETE_ARB
Returned in |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method 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: |
| GL_SYNC_CL_EVENT_ARB | back to summary |
|---|---|
| public static final int GL_SYNC_CL_EVENT_ARB Returned in | |
| GL_SYNC_CL_EVENT_COMPLETE_ARB | back to summary |
|---|---|
| public static final int GL_SYNC_CL_EVENT_COMPLETE_ARB Returned in | |
| ARBCLEvent | back to summary |
|---|---|
| protected ARBCLEvent() | |
| glCreateSyncFromCLeventARB | back to summary |
|---|---|
| public static long glCreateSyncFromCLeventARB(long context, long event, int flags) Creates a linked sync object. The status of such a sync object depends on 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.
| |
| nglCreateSyncFromCLeventARB | back to summary |
|---|---|
| public static native long nglCreateSyncFromCLeventARB(long context, long event, int flags) Unsafe version of: | |