Class VkExternalSemaphoreProperties

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
    Direct Known Subclasses:
    VkExternalSemaphorePropertiesKHR

    public class VkExternalSemaphoreProperties
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure describing supported external semaphore handle features.
    Description

    If handleType is not supported by the implementation, then VkExternalSemaphoreProperties::externalSemaphoreFeatures will be set to zero.

    Valid Usage (Implicit)
    See Also

    GetPhysicalDeviceExternalSemaphoreProperties, GetPhysicalDeviceExternalSemaphorePropertiesKHR

    Member documentation

    • exportFromImportedHandleTypes – a bitmask of VkExternalSemaphoreHandleTypeFlagBits specifying which types of imported handle handleType can be exported from.
    • compatibleHandleTypes – a bitmask of VkExternalSemaphoreHandleTypeFlagBits specifying handle types which can be specified at the same time as handleType when creating a semaphore.
    • externalSemaphoreFeatures – a bitmask of VkExternalSemaphoreFeatureFlagBits describing the features of handleType.

    Layout

    
     struct VkExternalSemaphoreProperties {
         VkStructureType sType;
         void * pNext;
         VkExternalSemaphoreHandleTypeFlags exportFromImportedHandleTypes;
         VkExternalSemaphoreHandleTypeFlags compatibleHandleTypes;
         VkExternalSemaphoreFeatureFlags externalSemaphoreFeatures;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, EXPORTFROMIMPORTEDHANDLETYPES, COMPATIBLEHANDLETYPES, EXTERNALSEMAPHOREFEATURES

        The struct member offsets.
    • Constructor Detail

      • VkExternalSemaphoreProperties

        public VkExternalSemaphoreProperties​(java.nio.ByteBuffer container)
        Creates a VkExternalSemaphoreProperties instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • sType

        public int sType()
        Returns the value of the sType field.
      • pNext

        public long pNext()
        Returns the value of the pNext field.
      • exportFromImportedHandleTypes

        public int exportFromImportedHandleTypes()
        Returns the value of the exportFromImportedHandleTypes field.
      • compatibleHandleTypes

        public int compatibleHandleTypes()
        Returns the value of the compatibleHandleTypes field.
      • externalSemaphoreFeatures

        public int externalSemaphoreFeatures()
        Returns the value of the externalSemaphoreFeatures field.
      • malloc

        public static VkExternalSemaphoreProperties malloc()
        Returns a new VkExternalSemaphoreProperties instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VkExternalSemaphoreProperties calloc()
        Returns a new VkExternalSemaphoreProperties instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VkExternalSemaphoreProperties create​(long address)
        Returns a new VkExternalSemaphoreProperties instance for the specified memory address.
      • mallocStack

        public static VkExternalSemaphoreProperties mallocStack()
        Returns a new VkExternalSemaphoreProperties instance allocated on the thread-local MemoryStack.
      • callocStack

        public static VkExternalSemaphoreProperties callocStack()
        Returns a new VkExternalSemaphoreProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static VkExternalSemaphoreProperties mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkExternalSemaphoreProperties instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static VkExternalSemaphoreProperties callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkExternalSemaphoreProperties instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nsType

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • ncompatibleHandleTypes

        public static int ncompatibleHandleTypes​(long struct)
        Unsafe version of compatibleHandleTypes().
      • nexternalSemaphoreFeatures

        public static int nexternalSemaphoreFeatures​(long struct)
        Unsafe version of externalSemaphoreFeatures().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.