Top Description Fields Constructors Methods
org.lwjgl.egl

public Class KHRFenceSync

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

Native bindings to the KHR_fence_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 introduces a type of sync object known as a "fence sync object" comparable to the OpenGL fence sync object. The specification is designed to allow additional types of sync objects to be easily introduced in later extensions.

Fence sync objects have corresponding fence commands, which are inserted into a client API command stream at the time the fence sync is created. A fence sync object is used to wait for completion of the corresponding fence command. This 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.

This document describes three different extension strings collectively. The "EGL_KHR_fence_sync" string indicates that fence syncs and the corresponding interfaces (to create and place a fence, destroy, query, and wait on) are supported.

The remaining extensions list valid client APIs for fence syncs. The "GL_OES_EGL_sync" string indicates that a fence sync object can be created in association with a fence command placed in the command stream of a bound OpenGL ES context. The "VG_KHR_EGL_sync" string indicates the same thing for a bound OpenVG context.

Requires EGL 1.1.

Field Summary

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

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
eglClientWaitSyncKHR(long dpy, long sync, int flags, long timeout)

public static long
eglCreateSyncKHR(long dpy, int type, IntBuffer attrib_list)

public static long
eglCreateSyncKHR(long dpy, int type, int[] attrib_list)

Array version of: CreateSyncKHR

public static boolean
eglDestroySyncKHR(long dpy, long sync)

public static boolean
eglGetSyncAttribKHR(long dpy, long sync, int attribute, IntBuffer value)

public static boolean
eglGetSyncAttribKHR(long dpy, long sync, int attribute, int[] value)

Array version of: GetSyncAttribKHR

public static long
neglCreateSyncKHR(long dpy, int type, long attrib_list)

public static int
neglGetSyncAttribKHR(long dpy, long sync, int attribute, long value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EGL_SYNC_CONDITION_KHRback to summary
public static final int EGL_SYNC_CONDITION_KHR
EGL_SYNC_FENCE_KHRback to summary
public static final int EGL_SYNC_FENCE_KHR
EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHRback to summary
public static final int EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR

Constructor Detail

KHRFenceSyncback to summary
protected KHRFenceSync()

Method Detail

eglClientWaitSyncKHRback to summary
public static int eglClientWaitSyncKHR(long dpy, long sync, int flags, long timeout)
Annotations
@NativeType:EGLint
eglCreateSyncKHRback to summary
public static long eglCreateSyncKHR(long dpy, int type, IntBuffer attrib_list)
Annotations
@NativeType:EGLSyncKHR
eglCreateSyncKHRback to summary
public static long eglCreateSyncKHR(long dpy, int type, int[] attrib_list)

Array version of: CreateSyncKHR

Annotations
@NativeType:EGLSyncKHR
eglDestroySyncKHRback to summary
public static boolean eglDestroySyncKHR(long dpy, long sync)
Annotations
@NativeType:EGLBoolean
eglGetSyncAttribKHRback to summary
public static boolean eglGetSyncAttribKHR(long dpy, long sync, int attribute, IntBuffer value)
Annotations
@NativeType:EGLBoolean
eglGetSyncAttribKHRback to summary
public static boolean eglGetSyncAttribKHR(long dpy, long sync, int attribute, int[] value)

Array version of: GetSyncAttribKHR

Annotations
@NativeType:EGLBoolean
neglCreateSyncKHRback to summary
public static long neglCreateSyncKHR(long dpy, int type, long attrib_list)
neglGetSyncAttribKHRback to summary
public static int neglGetSyncAttribKHR(long dpy, long sync, int attribute, long value)