Top Description Fields Constructors Methods
org.lwjgl.opencl

public Class KHREGLEvent

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

Native bindings to the khr_egl_event extension.

This extension allows creating OpenCL event objects linked to EGL fence sync objects, potentially improving efficiency of sharing images and buffers between the two APIs. The companion EGL_KHR_cl_event extension provides the complementary functionality of creating an EGL sync object from an OpenCL event object.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
CL_INVALID_EGL_OBJECT_KHR

Returned by clCreateEventFromEGLSyncKHR if sync is not a valid EGLSyncKHR handle created with respect to EGLDisplay display.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
clCreateEventFromEGLSyncKHR(long
a valid OpenCL context
context
,
long
the name of a sync object of type org.lwjgl.egl.EGL15#EGL_SYNC_FENCE created with respect to EGLDisplay display.
sync
,
long
an EGLDisplay
display
,
IntBuffer
will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
errcode_ret
)

Creates a linked event object.

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

Array version of: CreateEventFromEGLSyncKHR

public static long
nclCreateEventFromEGLSyncKHR(long context, long sync, long display, long errcode_ret)

Unsafe version of: CreateEventFromEGLSyncKHR

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CL_COMMAND_EGL_FENCE_SYNC_OBJECT_KHRback to summary
public static final int CL_COMMAND_EGL_FENCE_SYNC_OBJECT_KHR

Returned by GetEventInfo when param_name is EVENT_COMMAND_TYPE.

CL_INVALID_EGL_OBJECT_KHRback to summary
public static final int CL_INVALID_EGL_OBJECT_KHR

Returned by clCreateEventFromEGLSyncKHR if sync is not a valid EGLSyncKHR handle created with respect to EGLDisplay display.

Constructor Detail

KHREGLEventback to summary
protected KHREGLEvent()

Method Detail

clCreateEventFromEGLSyncKHRback to summary
public static long clCreateEventFromEGLSyncKHR(long context, long sync, long display, IntBuffer errcode_ret)

Creates a linked event object.

Parameters
context:long

a valid OpenCL context

sync:long

the name of a sync object of type org.lwjgl.egl.EGL15#EGL_SYNC_FENCE created with respect to EGLDisplay display.

display:long

an EGLDisplay

errcode_ret:IntBuffer

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

Annotations
@NativeType:cl_event
clCreateEventFromEGLSyncKHRback to summary
public static long clCreateEventFromEGLSyncKHR(long context, long sync, long display, int[] errcode_ret)

Array version of: CreateEventFromEGLSyncKHR

Annotations
@NativeType:cl_event
nclCreateEventFromEGLSyncKHRback to summary
public static long nclCreateEventFromEGLSyncKHR(long context, long sync, long display, long errcode_ret)

Unsafe version of: CreateEventFromEGLSyncKHR