public class APPLESync
extends java.lang.Object
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.0.
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_ALREADY_SIGNALED_APPLE
Returned by ClientWaitSyncAPPLE.
|
static int |
GL_CONDITION_SATISFIED_APPLE
Returned by ClientWaitSyncAPPLE.
|
static int |
GL_MAX_SERVER_WAIT_TIMEOUT_APPLE
Accepted as the
pname parameter of GetInteger64vAPPLE. |
static int |
GL_OBJECT_TYPE_APPLE
Accepted as the
pname parameter of GetSyncivAPPLE. |
static int |
GL_SIGNALED_APPLE
Returned in
values for GetSyncivAPPLE pname SYNC_STATUS_APPLE. |
static int |
GL_SYNC_CONDITION_APPLE
Accepted as the
pname parameter of GetSyncivAPPLE. |
static int |
GL_SYNC_FENCE_APPLE
Returned in
values for GetSynciv pname OBJECT_TYPE_APPLE. |
static int |
GL_SYNC_FLAGS_APPLE
Accepted as the
pname parameter of GetSyncivAPPLE. |
static int |
GL_SYNC_FLUSH_COMMANDS_BIT_APPLE
Accepted in the
flags parameter of ClientWaitSyncAPPLE. |
static int |
GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE
Returned in
values for GetSyncivAPPLE pname SYNC_CONDITION_APPLE. |
static int |
GL_SYNC_OBJECT_APPLE
Accepted by the
type parameter of LabelObjectEXT and GetObjectLabelEXT. |
static int |
GL_SYNC_STATUS_APPLE
Accepted as the
pname parameter of GetSyncivAPPLE. |
static int |
GL_TIMEOUT_EXPIRED_APPLE
Returned by ClientWaitSyncAPPLE.
|
static long |
GL_TIMEOUT_IGNORED_APPLE
Accepted in the
timeout parameter of WaitSyncAPPLE. |
static int |
GL_UNSIGNALED_APPLE
Returned in
values for GetSyncivAPPLE pname SYNC_STATUS_APPLE. |
static int |
GL_WAIT_FAILED_APPLE
Returned by ClientWaitSyncAPPLE.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
glClientWaitSyncAPPLE(long sync,
int flags,
long timeout) |
static void |
glDeleteSyncAPPLE(long sync) |
static long |
glFenceSyncAPPLE(int condition,
int flags) |
static long |
glGetInteger64APPLE(int pname) |
static void |
glGetInteger64vAPPLE(int pname,
long[] params)
Array version of:
GetInteger64vAPPLE |
static void |
glGetInteger64vAPPLE(int pname,
java.nio.LongBuffer params) |
static int |
glGetSynciAPPLE(long sync,
int pname,
java.nio.IntBuffer length) |
static void |
glGetSyncivAPPLE(long sync,
int pname,
int[] length,
int[] values)
Array version of:
GetSyncivAPPLE |
static void |
glGetSyncivAPPLE(long sync,
int pname,
java.nio.IntBuffer length,
java.nio.IntBuffer values) |
static boolean |
glIsSyncAPPLE(long sync) |
static void |
glWaitSyncAPPLE(long sync,
int flags,
long timeout) |
static int |
nglClientWaitSyncAPPLE(long sync,
int flags,
long timeout) |
static void |
nglDeleteSyncAPPLE(long sync) |
static void |
nglGetInteger64vAPPLE(int pname,
long params) |
static void |
nglGetSyncivAPPLE(long sync,
int pname,
int bufSize,
long length,
long values) |
static boolean |
nglIsSyncAPPLE(long sync) |
static void |
nglWaitSyncAPPLE(long sync,
int flags,
long timeout) |
public static final int GL_MAX_SERVER_WAIT_TIMEOUT_APPLE
pname parameter of GetInteger64vAPPLE.public static final int GL_OBJECT_TYPE_APPLE
pname parameter of GetSyncivAPPLE.public static final int GL_SYNC_CONDITION_APPLE
pname parameter of GetSyncivAPPLE.public static final int GL_SYNC_STATUS_APPLE
pname parameter of GetSyncivAPPLE.public static final int GL_SYNC_FLAGS_APPLE
pname parameter of GetSyncivAPPLE.public static final int GL_SYNC_FENCE_APPLE
values for GetSynciv pname OBJECT_TYPE_APPLE.public static final int GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE
values for GetSyncivAPPLE pname SYNC_CONDITION_APPLE.public static final int GL_UNSIGNALED_APPLE
values for GetSyncivAPPLE pname SYNC_STATUS_APPLE.public static final int GL_SIGNALED_APPLE
values for GetSyncivAPPLE pname SYNC_STATUS_APPLE.public static final int GL_SYNC_FLUSH_COMMANDS_BIT_APPLE
flags parameter of ClientWaitSyncAPPLE.public static final long GL_TIMEOUT_IGNORED_APPLE
timeout parameter of WaitSyncAPPLE.public static final int GL_ALREADY_SIGNALED_APPLE
public static final int GL_TIMEOUT_EXPIRED_APPLE
public static final int GL_CONDITION_SATISFIED_APPLE
public static final int GL_WAIT_FAILED_APPLE
public static final int GL_SYNC_OBJECT_APPLE
type parameter of LabelObjectEXT and GetObjectLabelEXT.public static long glFenceSyncAPPLE(int condition,
int flags)
public static boolean nglIsSyncAPPLE(long sync)
public static boolean glIsSyncAPPLE(long sync)
public static void nglDeleteSyncAPPLE(long sync)
public static void glDeleteSyncAPPLE(long sync)
public static int nglClientWaitSyncAPPLE(long sync,
int flags,
long timeout)
public static int glClientWaitSyncAPPLE(long sync,
int flags,
long timeout)
public static void nglWaitSyncAPPLE(long sync,
int flags,
long timeout)
public static void glWaitSyncAPPLE(long sync,
int flags,
long timeout)
public static void nglGetInteger64vAPPLE(int pname,
long params)
public static void glGetInteger64vAPPLE(int pname,
java.nio.LongBuffer params)
public static long glGetInteger64APPLE(int pname)
public static void nglGetSyncivAPPLE(long sync,
int pname,
int bufSize,
long length,
long values)
public static void glGetSyncivAPPLE(long sync,
int pname,
@Nullable
java.nio.IntBuffer length,
java.nio.IntBuffer values)
public static int glGetSynciAPPLE(long sync,
int pname,
@Nullable
java.nio.IntBuffer length)
public static void glGetInteger64vAPPLE(int pname,
long[] params)
GetInteger64vAPPLEpublic static void glGetSyncivAPPLE(long sync,
int pname,
@Nullable
int[] length,
int[] values)
GetSyncivAPPLECopyright LWJGL. All Rights Reserved. License terms.