Class EXTSemaphore
- java.lang.Object
-
- org.lwjgl.opengl.EXTSemaphore
-
public class EXTSemaphore extends java.lang.ObjectNative bindings to the EXT_semaphore extension.The Vulkan API introduces the concept of explicit memory objects and reusable synchronization objects. This extension brings those concepts to the OpenGL API via two new object types:
- Memory objects
- Semaphores
Rather than allocating memory as a response to object allocation, memory allocation and binding are two separate operations in Vulkan. This extension allows an OpenGL application to import a Vulkan memory object, and to bind textures and/or buffer objects to it.
No methods to import memory objects are defined here. Separate platform-specific extensions are defined for this purpose.
Semaphores are synchronization primitives that can be waited on and signaled only by the GPU, or in GL terms, in the GL server. They are similar in concept to GL's "sync" objects and EGL's "EGLSync" objects, but different enough that compatibilities between the two are difficult to derive.
Rather than attempt to map Vulkan semaphores on to GL/EGL sync objects to achieve interoperability, this extension introduces a new object, GL semaphores, that map directly to the semantics of Vulkan semaphores. To achieve full image and buffer memory coherence with a Vulkan driver, the commands that manipulate semaphores also allow external usage information to be imported and exported.
-
-
Field Summary
Fields Modifier and Type Field and Description static intGL_DEVICE_UUID_EXT
GL_DRIVER_UUID_EXTAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, GetInteger64v,GetUnsignedBytevEXT, and thetargetparameter of GetBooleani_v, GetIntegeri_v,GetFloati_v, GetDoublei_v, GetInteger64i_v, andGetUnsignedBytei_vEXT.static intGL_LAYOUT_COLOR_ATTACHMENT_EXT
GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT
GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT
GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT
GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT
GL_LAYOUT_GENERAL_EXT
GL_LAYOUT_SHADER_READ_ONLY_EXT
GL_LAYOUT_TRANSFER_DST_EXT
GL_LAYOUT_TRANSFER_SRC_EXTAccepted by thedstLayoutsparameter ofSignalSemaphoreEXTand thesrcLayoutsparameter ofWaitSemaphoreEXT.static intGL_NUM_DEVICE_UUIDS_EXTAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, GetInteger64v,GetUnsignedBytevEXT, and thetargetparameter of GetBooleani_v, GetIntegeri_v,GetFloati_v, GetDoublei_v, GetInteger64i_v, andGetUnsignedBytei_vEXT.static intGL_UUID_SIZE_EXTConstant values.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglDeleteSemaphoresEXT(int semaphore)static voidglDeleteSemaphoresEXT(int[] semaphores)Array version of:DeleteSemaphoresEXTstatic voidglDeleteSemaphoresEXT(java.nio.IntBuffer semaphores)static intglGenSemaphoresEXT()static voidglGenSemaphoresEXT(int[] semaphores)Array version of:GenSemaphoresEXTstatic voidglGenSemaphoresEXT(java.nio.IntBuffer semaphores)static longglGetSemaphoreParameterui64EXT(int semaphore, int pname)static voidglGetSemaphoreParameterui64vEXT(int semaphore, int pname, long[] params)Array version of:GetSemaphoreParameterui64vEXTstatic voidglGetSemaphoreParameterui64vEXT(int semaphore, int pname, java.nio.LongBuffer params)static voidglGetUnsignedBytei_vEXT(int target, int index, java.nio.ByteBuffer data)static voidglGetUnsignedBytevEXT(int pname, java.nio.ByteBuffer data)static booleanglIsSemaphoreEXT(int semaphore)static voidglSemaphoreParameterui64EXT(int semaphore, int pname, long param)static voidglSemaphoreParameterui64vEXT(int semaphore, int pname, long[] params)Array version of:SemaphoreParameterui64vEXTstatic voidglSemaphoreParameterui64vEXT(int semaphore, int pname, java.nio.LongBuffer params)static voidglSignalSemaphoreEXT(int semaphore, int[] buffers, int[] textures, int[] dstLayouts)Array version of:SignalSemaphoreEXTstatic voidglSignalSemaphoreEXT(int semaphore, java.nio.IntBuffer buffers, java.nio.IntBuffer textures, java.nio.IntBuffer dstLayouts)static voidglWaitSemaphoreEXT(int semaphore, int[] buffers, int[] textures, int[] srcLayouts)Array version of:WaitSemaphoreEXTstatic voidglWaitSemaphoreEXT(int semaphore, java.nio.IntBuffer buffers, java.nio.IntBuffer textures, java.nio.IntBuffer srcLayouts)
-
-
-
Field Detail
-
GL_NUM_DEVICE_UUIDS_EXT, GL_DEVICE_UUID_EXT, GL_DRIVER_UUID_EXT
Accepted by thepnameparameter of GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, GetInteger64v,GetUnsignedBytevEXT, and thetargetparameter of GetBooleani_v, GetIntegeri_v,GetFloati_v, GetDoublei_v, GetInteger64i_v, andGetUnsignedBytei_vEXT.
-
GL_UUID_SIZE_EXT
Constant values.
-
GL_LAYOUT_GENERAL_EXT, GL_LAYOUT_COLOR_ATTACHMENT_EXT, GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT, GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT, GL_LAYOUT_SHADER_READ_ONLY_EXT, GL_LAYOUT_TRANSFER_SRC_EXT, GL_LAYOUT_TRANSFER_DST_EXT, GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT, GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT
Accepted by thedstLayoutsparameter ofSignalSemaphoreEXTand thesrcLayoutsparameter ofWaitSemaphoreEXT.
-
-
Method Detail
-
glGetUnsignedBytevEXT
public static void glGetUnsignedBytevEXT(int pname, java.nio.ByteBuffer data)
-
glGetUnsignedBytei_vEXT
public static void glGetUnsignedBytei_vEXT(int target, int index, java.nio.ByteBuffer data)
-
glGenSemaphoresEXT
public static void glGenSemaphoresEXT(java.nio.IntBuffer semaphores)
-
glGenSemaphoresEXT
public static int glGenSemaphoresEXT()
-
glDeleteSemaphoresEXT
public static void glDeleteSemaphoresEXT(java.nio.IntBuffer semaphores)
-
glDeleteSemaphoresEXT
public static void glDeleteSemaphoresEXT(int semaphore)
-
glIsSemaphoreEXT
public static boolean glIsSemaphoreEXT(int semaphore)
-
glSemaphoreParameterui64vEXT
public static void glSemaphoreParameterui64vEXT(int semaphore, int pname, java.nio.LongBuffer params)
-
glSemaphoreParameterui64EXT
public static void glSemaphoreParameterui64EXT(int semaphore, int pname, long param)
-
glGetSemaphoreParameterui64vEXT
public static void glGetSemaphoreParameterui64vEXT(int semaphore, int pname, java.nio.LongBuffer params)
-
glGetSemaphoreParameterui64EXT
public static long glGetSemaphoreParameterui64EXT(int semaphore, int pname)
-
glWaitSemaphoreEXT
public static void glWaitSemaphoreEXT(int semaphore, java.nio.IntBuffer buffers, java.nio.IntBuffer textures, java.nio.IntBuffer srcLayouts)
-
glSignalSemaphoreEXT
public static void glSignalSemaphoreEXT(int semaphore, java.nio.IntBuffer buffers, java.nio.IntBuffer textures, java.nio.IntBuffer dstLayouts)
-
glGenSemaphoresEXT
public static void glGenSemaphoresEXT(int[] semaphores)
Array version of:GenSemaphoresEXT
-
glDeleteSemaphoresEXT
public static void glDeleteSemaphoresEXT(int[] semaphores)
Array version of:DeleteSemaphoresEXT
-
glSemaphoreParameterui64vEXT
public static void glSemaphoreParameterui64vEXT(int semaphore, int pname, long[] params)Array version of:SemaphoreParameterui64vEXT
-
glGetSemaphoreParameterui64vEXT
public static void glGetSemaphoreParameterui64vEXT(int semaphore, int pname, long[] params)Array version of:GetSemaphoreParameterui64vEXT
-
glWaitSemaphoreEXT
public static void glWaitSemaphoreEXT(int semaphore, int[] buffers, int[] textures, int[] srcLayouts)Array version of:WaitSemaphoreEXT
-
glSignalSemaphoreEXT
public static void glSignalSemaphoreEXT(int semaphore, int[] buffers, int[] textures, int[] dstLayouts)Array version of:SignalSemaphoreEXT
-
-