Class NVSync
- java.lang.Object
-
- org.lwjgl.egl.NVSync
-
public class NVSync extends java.lang.Object
Native bindings to the NV_sync extension.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
Fields Modifier and Type Field Description static int
EGL_ALREADY_SIGNALED_NV
EGL_CONDITION_SATISFIED_NVstatic long
EGL_FOREVER_NV
EGL_NO_SYNC_NVstatic int
EGL_SIGNALED_NV
EGL_SYNC_CONDITION_NV
EGL_SYNC_FENCE_NV
EGL_SYNC_FLUSH_COMMANDS_BIT_NV
EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV
EGL_SYNC_STATUS_NV
EGL_SYNC_TYPE_NV
EGL_TIMEOUT_EXPIRED_NV
EGL_UNSIGNALED_NV
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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, java.nio.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, java.nio.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 Detail
-
EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV
public static final int EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV
- See Also:
- Constant Field Values
-
EGL_SYNC_STATUS_NV
public static final int EGL_SYNC_STATUS_NV
- See Also:
- Constant Field Values
-
EGL_SIGNALED_NV
public static final int EGL_SIGNALED_NV
- See Also:
- Constant Field Values
-
EGL_UNSIGNALED_NV
public static final int EGL_UNSIGNALED_NV
- See Also:
- Constant Field Values
-
EGL_SYNC_FLUSH_COMMANDS_BIT_NV
public static final int EGL_SYNC_FLUSH_COMMANDS_BIT_NV
- See Also:
- Constant Field Values
-
EGL_ALREADY_SIGNALED_NV
public static final int EGL_ALREADY_SIGNALED_NV
- See Also:
- Constant Field Values
-
EGL_TIMEOUT_EXPIRED_NV
public static final int EGL_TIMEOUT_EXPIRED_NV
- See Also:
- Constant Field Values
-
EGL_CONDITION_SATISFIED_NV
public static final int EGL_CONDITION_SATISFIED_NV
- See Also:
- Constant Field Values
-
EGL_SYNC_TYPE_NV
public static final int EGL_SYNC_TYPE_NV
- See Also:
- Constant Field Values
-
EGL_SYNC_CONDITION_NV
public static final int EGL_SYNC_CONDITION_NV
- See Also:
- Constant Field Values
-
EGL_SYNC_FENCE_NV
public static final int EGL_SYNC_FENCE_NV
- See Also:
- Constant Field Values
-
EGL_FOREVER_NV
public static final long EGL_FOREVER_NV
- See Also:
- Constant Field Values
-
EGL_NO_SYNC_NV
public static final long EGL_NO_SYNC_NV
- See Also:
- Constant Field Values
-
-
Method Detail
-
neglCreateFenceSyncNV
public static long neglCreateFenceSyncNV(long dpy, int condition, long attrib_list)
-
eglCreateFenceSyncNV
public static long eglCreateFenceSyncNV(long dpy, int condition, java.nio.IntBuffer attrib_list)
-
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
public static boolean eglGetSyncAttribNV(long sync, int attribute, java.nio.IntBuffer value)
-
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
-
-