Class VkD3D12FenceSubmitInfoKHR

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

public class VkD3D12FenceSubmitInfoKHR extends org.lwjgl.system.Struct<VkD3D12FenceSubmitInfoKHR> implements org.lwjgl.system.NativeResource
Structure specifying values for Direct3D 12 fence-backed semaphores.
Description

If the semaphore in VkSubmitInfo::pWaitSemaphores or VkSubmitInfo::pSignalSemaphores corresponding to an entry in pWaitSemaphoreValues or pSignalSemaphoreValues respectively does not currently have a payload referring to a Direct3D 12 fence, the implementation must ignore the value in the pWaitSemaphoreValues or pSignalSemaphoreValues entry.

Note

As the introduction of the external semaphore handle type EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BIT predates that of timeline semaphores, support for importing semaphore payloads from external handles of that type into semaphores created (implicitly or explicitly) with a VkSemaphoreType of SEMAPHORE_TYPE_BINARY is preserved for backwards compatibility. However, applications should prefer importing such handle types into semaphores created with a VkSemaphoreType of SEMAPHORE_TYPE_TIMELINE, and use the VkTimelineSemaphoreSubmitInfo structure instead of the VkD3D12FenceSubmitInfoKHR structure to specify the values to use when waiting for and signaling such semaphores.

Valid Usage
  • waitSemaphoreValuesCount must be the same value as VkSubmitInfo::waitSemaphoreCount, where this structure is in the pNext chain of a VkSubmitInfo structure
  • signalSemaphoreValuesCount must be the same value as VkSubmitInfo::signalSemaphoreCount, where this structure is in the pNext chain of a VkSubmitInfo structure
Valid Usage (Implicit)
  • sType must be STRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHR
  • If waitSemaphoreValuesCount is not 0, and pWaitSemaphoreValues is not NULL, pWaitSemaphoreValues must be a valid pointer to an array of waitSemaphoreValuesCount uint64_t values
  • If signalSemaphoreValuesCount is not 0, and pSignalSemaphoreValues is not NULL, pSignalSemaphoreValues must be a valid pointer to an array of signalSemaphoreValuesCount uint64_t values

Layout


 struct VkD3D12FenceSubmitInfoKHR {
     VkStructureType sType();
     void const * pNext();
     uint32_t waitSemaphoreValuesCount();
     uint64_t const * pWaitSemaphoreValues();
     uint32_t signalSemaphoreValuesCount();
     uint64_t const * pSignalSemaphoreValues();
 }
  • 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.
    • WAITSEMAPHOREVALUESCOUNT

      public static final int WAITSEMAPHOREVALUESCOUNT
      The struct member offsets.
    • PWAITSEMAPHOREVALUES

      public static final int PWAITSEMAPHOREVALUES
      The struct member offsets.
    • SIGNALSEMAPHOREVALUESCOUNT

      public static final int SIGNALSEMAPHOREVALUESCOUNT
      The struct member offsets.
    • PSIGNALSEMAPHOREVALUES

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

    • VkD3D12FenceSubmitInfoKHR

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