Class EXTX11SyncObject


  • public class EXTX11SyncObject
    extends java.lang.Object
    Native bindings to the EXT_x11_sync_object extension.

    Synchronization objects added the ability to better coordinate operations between multiple GL command streams. However, it is desirable to have the same level of coordination between GL command streams and external rendering APIs. This extension introduces two new concepts to build upon the synchronization infrastructure provided by ARB_sync:

    1. A means to import an X Synchronization Fence object into the GL and use it as a sync object.
    2. The concept of a reusable sync object.

    The latter is necessary because the import operation is expensive and performing it every time a synchronization point was reached would make the synchronization prohibitively slow.

    This extension stops short of allowing the GL to change the state of imported/reusable sync objects, but does not add any language that would prohibit such functionality from being added in a subsequent extension.

    Requires OpenGL 3.2 or ARB_sync.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int GL_SYNC_X11_FENCE_EXT
      Accepted by the external_sync_type parameter of ImportSyncEXT.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long glImportSyncEXT​(int external_sync_type, long external_sync, int flags)
      Creates a GL sync object of the type external_sync_type based on the object referred to by external_sync.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • GL_SYNC_X11_FENCE_EXT

        public static final int GL_SYNC_X11_FENCE_EXT
        Accepted by the external_sync_type parameter of ImportSyncEXT.
        See Also:
        Constant Field Values
    • Method Detail

      • glImportSyncEXT

        public static long glImportSyncEXT​(int external_sync_type,
                                           long external_sync,
                                           int flags)
        Creates a GL sync object of the type external_sync_type based on the object referred to by external_sync.
        Parameters:
        external_sync_type - the external sync object type. Must be:
        SYNC_X11_FENCE_EXT
        external_sync - the external sync object. Must be the XID of a valid X11 Synchronization Fence object
        flags - Must be 0.