Class VkSemaphoreGetFdInfoKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkSemaphoreGetFdInfoKHR>
org.lwjgl.vulkan.VkSemaphoreGetFdInfoKHR
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkSemaphoreGetFdInfoKHR extends org.lwjgl.system.Struct<VkSemaphoreGetFdInfoKHR> implements org.lwjgl.system.NativeResource
Structure describing a POSIX FD semaphore export operation.
Description

The properties of the file descriptor returned depend on the value of handleType. See VkExternalSemaphoreHandleTypeFlagBits for a description of the properties of the defined external semaphore handle types.

Valid Usage
  • handleType must have been included in VkExportSemaphoreCreateInfo::handleTypes when semaphore’s current payload was created
  • semaphore must not currently have its payload replaced by an imported payload as described below in Importing Semaphore Payloads unless that imported payload’s handle type was included in VkExternalSemaphoreProperties::exportFromImportedHandleTypes for handleType
  • If handleType refers to a handle type with copy payload transference semantics, as defined below in Importing Semaphore Payloads, there must be no queue waiting on semaphore
  • If handleType refers to a handle type with copy payload transference semantics, semaphore must be signaled, or have an associated semaphore signal operation pending execution
  • handleType must be defined as a POSIX file descriptor handle
  • If handleType refers to a handle type with copy payload transference semantics, semaphore must have been created with a VkSemaphoreType of SEMAPHORE_TYPE_BINARY
  • If handleType refers to a handle type with copy payload transference semantics, semaphore must have an associated semaphore signal operation that has been submitted for execution and any semaphore signal operations on which it depends must have also been submitted for execution
Valid Usage (Implicit)
See Also

GetSemaphoreFdKHR

Layout


 struct VkSemaphoreGetFdInfoKHR {
     VkStructureType sType();
     void const * pNext();
     VkSemaphore semaphore();
     VkExternalSemaphoreHandleTypeFlagBits handleType();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • SEMAPHORE

      public static final int SEMAPHORE
      The struct member offsets.
    • HANDLETYPE

      public static final int HANDLETYPE
      The struct member offsets.
  • Constructor Details

    • VkSemaphoreGetFdInfoKHR

      public VkSemaphoreGetFdInfoKHR(ByteBuffer container)
      Creates a VkSemaphoreGetFdInfoKHR 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 Details