This extension introduces the concept of "sync objects". Sync objects are a synchronization primitive - a representation of events whose completion status can be tested or waited upon. One specific type of sync object, the "fence sync object", is supported in this extension, and additional types can easily be added in the future.
Fence sync objects have corresponding fences, which are inserted into the OpenGL command stream at the time the sync object is created. A sync object can be queried for a given condition. The only condition supported for fence sync objects is completion of the corresponding fence command. Fence completion allows applications to request a partial Finish, wherein all commands prior to the fence will be forced to complete before control is returned to the calling process.
These new mechanisms allow for synchronization between the host CPU and the GPU, which may be accessing the same resources (typically memory), as well as between multiple GL contexts bound to multiple threads in the host CPU.
Requires GLES 2..
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_ALREADY_SIGNALED_APPLE
Returned by ClientWaitSyncAPPLE. |
| public static final int | GL_CONDITION_SATISFIED_APPLE
Returned by ClientWaitSyncAPPLE. |
| public static final int | GL_MAX_SERVER_WAIT_TIMEOUT_APPLE
Accepted as the |
| public static final int | GL_OBJECT_TYPE_APPLE
Accepted as the |
| public static final int | GL_SIGNALED_APPLE
Returned in |
| public static final int | GL_SYNC_CONDITION_APPLE
Accepted as the |
| public static final int | GL_SYNC_FENCE_APPLE
Returned in |
| public static final int | GL_SYNC_FLAGS_APPLE
Accepted as the |
| public static final int | GL_SYNC_FLUSH_COMMANDS_BIT_APPLE
Accepted in the |
| public static final int | GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE
Returned in |
| public static final int | GL_SYNC_OBJECT_APPLE
Accepted by the |
| public static final int | GL_SYNC_STATUS_APPLE
Accepted as the |
| public static final int | GL_TIMEOUT_EXPIRED_APPLE
Returned by ClientWaitSyncAPPLE. |
| public static final long | GL_TIMEOUT_IGNORED_APPLE
Accepted in the |
| public static final int | GL_UNSIGNALED_APPLE
Returned in |
| public static final int | GL_WAIT_FAILED_APPLE
Returned by ClientWaitSyncAPPLE. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static void | |
| public static native long | |
| public static long | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static void | |
| public static boolean | |
| public static void | |
| public static native int | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native boolean | |
| public static native void |
| GL_ALREADY_SIGNALED_APPLE | back to summary |
|---|---|
| public static final int GL_ALREADY_SIGNALED_APPLE Returned by ClientWaitSyncAPPLE. | |
| GL_CONDITION_SATISFIED_APPLE | back to summary |
|---|---|
| public static final int GL_CONDITION_SATISFIED_APPLE Returned by ClientWaitSyncAPPLE. | |
| GL_MAX_SERVER_WAIT_TIMEOUT_APPLE | back to summary |
|---|---|
| public static final int GL_MAX_SERVER_WAIT_TIMEOUT_APPLE Accepted as the | |
| GL_OBJECT_TYPE_APPLE | back to summary |
|---|---|
| public static final int GL_OBJECT_TYPE_APPLE Accepted as the | |
| GL_SIGNALED_APPLE | back to summary |
|---|---|
| public static final int GL_SIGNALED_APPLE Returned in | |
| GL_SYNC_CONDITION_APPLE | back to summary |
|---|---|
| public static final int GL_SYNC_CONDITION_APPLE Accepted as the | |
| GL_SYNC_FENCE_APPLE | back to summary |
|---|---|
| public static final int GL_SYNC_FENCE_APPLE Returned in | |
| GL_SYNC_FLAGS_APPLE | back to summary |
|---|---|
| public static final int GL_SYNC_FLAGS_APPLE Accepted as the | |
| GL_SYNC_FLUSH_COMMANDS_BIT_APPLE | back to summary |
|---|---|
| public static final int GL_SYNC_FLUSH_COMMANDS_BIT_APPLE Accepted in the | |
| GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE | back to summary |
|---|---|
| public static final int GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE Returned in | |
| GL_SYNC_OBJECT_APPLE | back to summary |
|---|---|
| public static final int GL_SYNC_OBJECT_APPLE Accepted by the | |
| GL_SYNC_STATUS_APPLE | back to summary |
|---|---|
| public static final int GL_SYNC_STATUS_APPLE Accepted as the | |
| GL_TIMEOUT_EXPIRED_APPLE | back to summary |
|---|---|
| public static final int GL_TIMEOUT_EXPIRED_APPLE Returned by ClientWaitSyncAPPLE. | |
| GL_TIMEOUT_IGNORED_APPLE | back to summary |
|---|---|
| public static final long GL_TIMEOUT_IGNORED_APPLE Accepted in the | |
| GL_UNSIGNALED_APPLE | back to summary |
|---|---|
| public static final int GL_UNSIGNALED_APPLE Returned in | |
| GL_WAIT_FAILED_APPLE | back to summary |
|---|---|
| public static final int GL_WAIT_FAILED_APPLE Returned by ClientWaitSyncAPPLE. | |
| APPLESync | back to summary |
|---|---|
| protected APPLESync() | |
| glClientWaitSyncAPPLE | back to summary |
|---|---|
public static int glClientWaitSyncAPPLE(long sync, int flags, long timeout)
| |
| glDeleteSyncAPPLE | back to summary |
|---|---|
| public static void glDeleteSyncAPPLE(long sync) | |
| glFenceSyncAPPLE | back to summary |
|---|---|
public static native long glFenceSyncAPPLE(int condition, int flags)
| |
| glGetInteger64APPLE | back to summary |
|---|---|
public static long glGetInteger64APPLE(int pname)
| |
| glGetInteger64vAPPLE | back to summary |
|---|---|
| public static void glGetInteger64vAPPLE(int pname, LongBuffer params) | |
| glGetInteger64vAPPLE | back to summary |
|---|---|
| public static void glGetInteger64vAPPLE(int pname, long[] params) Array version of: | |
| glGetSynciAPPLE | back to summary |
|---|---|
public static int glGetSynciAPPLE(long sync, int pname, IntBuffer length)
| |
| glGetSyncivAPPLE | back to summary |
|---|---|
| public static void glGetSyncivAPPLE(long sync, int pname, IntBuffer length, IntBuffer values) | |
| glGetSyncivAPPLE | back to summary |
|---|---|
| public static void glGetSyncivAPPLE(long sync, int pname, int[] length, int[] values) Array version of: | |
| glIsSyncAPPLE | back to summary |
|---|---|
public static boolean glIsSyncAPPLE(long sync)
| |
| glWaitSyncAPPLE | back to summary |
|---|---|
| public static void glWaitSyncAPPLE(long sync, int flags, long timeout) | |
| nglClientWaitSyncAPPLE | back to summary |
|---|---|
| public static native int nglClientWaitSyncAPPLE(long sync, int flags, long timeout) | |
| nglDeleteSyncAPPLE | back to summary |
|---|---|
| public static native void nglDeleteSyncAPPLE(long sync) | |
| nglGetInteger64vAPPLE | back to summary |
|---|---|
| public static native void nglGetInteger64vAPPLE(int pname, long params) | |
| nglGetSyncivAPPLE | back to summary |
|---|---|
| public static native void nglGetSyncivAPPLE(long sync, int pname, int bufSize, long length, long values) | |
| nglIsSyncAPPLE | back to summary |
|---|---|
| public static native boolean nglIsSyncAPPLE(long sync) | |
| nglWaitSyncAPPLE | back to summary |
|---|---|
| public static native void nglWaitSyncAPPLE(long sync, int flags, long timeout) | |