Class NVSync
This extension introduces the concept of "sync objects" into EGL. Sync objects are a synchronization primitive, representing events whose completion can be tested or waited upon. This extension borrows heavily from the GL_ARB_sync extension, and like that extension, introduces only a single type of sync object, the "fence sync object." Additional types of sync objects may be introduced in later extensions.
Fence sync objects have corresponding fences, which are inserted into client API command streams. A sync object can be queried for a given condition, such as completion of the corresponding fence. Fence completion allows applications to request a partial Finish of an API command stream, wherein all commands issued in a particular client API context will be forced to complete before control is returned to the calling thread.
Requires EGL 1.1
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final long
static final long
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
eglClientWaitSyncNV
(long sync, int flags, long timeout) static long
eglCreateFenceSyncNV
(long dpy, int condition, int[] attrib_list) Array version of:CreateFenceSyncNV
static long
eglCreateFenceSyncNV
(long dpy, int condition, IntBuffer attrib_list) static boolean
eglDestroySyncNV
(long sync) static boolean
eglFenceNV
(long sync) static boolean
eglGetSyncAttribNV
(long sync, int attribute, int[] value) Array version of:GetSyncAttribNV
static boolean
eglGetSyncAttribNV
(long sync, int attribute, IntBuffer value) static boolean
eglSignalSyncNV
(long sync, int mode) static long
neglCreateFenceSyncNV
(long dpy, int condition, long attrib_list) static int
neglGetSyncAttribNV
(long sync, int attribute, long value)
-
Field Details
-
EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV
public static final int EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV- See Also:
-
EGL_SYNC_STATUS_NV
public static final int EGL_SYNC_STATUS_NV- See Also:
-
EGL_SIGNALED_NV
public static final int EGL_SIGNALED_NV- See Also:
-
EGL_UNSIGNALED_NV
public static final int EGL_UNSIGNALED_NV- See Also:
-
EGL_SYNC_FLUSH_COMMANDS_BIT_NV
public static final int EGL_SYNC_FLUSH_COMMANDS_BIT_NV- See Also:
-
EGL_ALREADY_SIGNALED_NV
public static final int EGL_ALREADY_SIGNALED_NV- See Also:
-
EGL_TIMEOUT_EXPIRED_NV
public static final int EGL_TIMEOUT_EXPIRED_NV- See Also:
-
EGL_CONDITION_SATISFIED_NV
public static final int EGL_CONDITION_SATISFIED_NV- See Also:
-
EGL_SYNC_TYPE_NV
public static final int EGL_SYNC_TYPE_NV- See Also:
-
EGL_SYNC_CONDITION_NV
public static final int EGL_SYNC_CONDITION_NV- See Also:
-
EGL_SYNC_FENCE_NV
public static final int EGL_SYNC_FENCE_NV- See Also:
-
EGL_FOREVER_NV
public static final long EGL_FOREVER_NV- See Also:
-
EGL_NO_SYNC_NV
public static final long EGL_NO_SYNC_NV- See Also:
-
-
Method Details
-
neglCreateFenceSyncNV
public static long neglCreateFenceSyncNV(long dpy, int condition, long attrib_list) -
eglCreateFenceSyncNV
-
eglDestroySyncNV
public static boolean eglDestroySyncNV(long sync) -
eglFenceNV
public static boolean eglFenceNV(long sync) -
eglClientWaitSyncNV
public static int eglClientWaitSyncNV(long sync, int flags, long timeout) -
eglSignalSyncNV
public static boolean eglSignalSyncNV(long sync, int mode) -
neglGetSyncAttribNV
public static int neglGetSyncAttribNV(long sync, int attribute, long value) -
eglGetSyncAttribNV
-
eglCreateFenceSyncNV
public static long eglCreateFenceSyncNV(long dpy, int condition, int[] attrib_list) Array version of:CreateFenceSyncNV
-
eglGetSyncAttribNV
public static boolean eglGetSyncAttribNV(long sync, int attribute, int[] value) Array version of:GetSyncAttribNV
-