Class VkSubmitInfo2

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkSubmitInfo2>
org.lwjgl.vulkan.VkSubmitInfo2
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Direct Known Subclasses:
VkSubmitInfo2KHR

public class VkSubmitInfo2 extends org.lwjgl.system.Struct<VkSubmitInfo2> implements org.lwjgl.system.NativeResource
Structure specifying a queue submit operation.
Valid Usage
  • If the same semaphore is used as the semaphore member of both an element of pSignalSemaphoreInfos and pWaitSemaphoreInfos, and that semaphore is a timeline semaphore, the value member of the pSignalSemaphoreInfos element must be greater than the value member of the pWaitSemaphoreInfos element
  • If the semaphore member of any element of pSignalSemaphoreInfos is a timeline semaphore, the value member of that element must have a value greater than the current value of the semaphore when the semaphore signal operation is executed
  • If the semaphore member of any element of pSignalSemaphoreInfos is a timeline semaphore, the value member of that element must have a value which does not differ from the current value of the semaphore or the value of any outstanding semaphore wait or signal operation on that semaphore by more than maxTimelineSemaphoreValueDifference
  • If the semaphore member of any element of pWaitSemaphoreInfos is a timeline semaphore, the value member of that element must have a value which does not differ from the current value of the semaphore or the value of any outstanding semaphore wait or signal operation on that semaphore by more than maxTimelineSemaphoreValueDifference
  • If flags includes SUBMIT_PROTECTED_BIT, all elements of pCommandBuffers must be protected command buffers
  • If flags does not include SUBMIT_PROTECTED_BIT, each element of pCommandBuffers must not be a protected command buffer
  • If any commandBuffer member of an element of pCommandBufferInfos contains any resumed render pass instances, they must be suspended by a render pass instance earlier in submission order within pCommandBufferInfos
  • If any commandBuffer member of an element of pCommandBufferInfos contains any suspended render pass instances, they must be resumed by a render pass instance later in submission order within pCommandBufferInfos
  • If any commandBuffer member of an element of pCommandBufferInfos contains any suspended render pass instances, there must be no action or synchronization commands between that render pass instance and the render pass instance that resumes it
  • If any commandBuffer member of an element of pCommandBufferInfos contains any suspended render pass instances, there must be no render pass instances between that render pass instance and the render pass instance that resumes it
  • If the variableSampleLocations limit is not supported, and any commandBuffer member of an element of pCommandBufferInfos contains any suspended render pass instances, where a graphics pipeline has been bound, any pipelines bound in the render pass instance that resumes it, or any subsequent render pass instances that resume from that one and so on, must use the same sample locations
Valid Usage (Implicit)
See Also

VkCommandBufferSubmitInfo, VkSemaphoreSubmitInfo, QueueSubmit2, QueueSubmit2KHR

Layout


 struct VkSubmitInfo2 {
     VkStructureType sType();
     void const * pNext();
     VkSubmitFlags flags();
     uint32_t waitSemaphoreInfoCount();
     VkSemaphoreSubmitInfo const * pWaitSemaphoreInfos();
     uint32_t commandBufferInfoCount();
     VkCommandBufferSubmitInfo const * pCommandBufferInfos();
     uint32_t signalSemaphoreInfoCount();
     VkSemaphoreSubmitInfo const * pSignalSemaphoreInfos();
 }
  • 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.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • WAITSEMAPHOREINFOCOUNT

      public static final int WAITSEMAPHOREINFOCOUNT
      The struct member offsets.
    • PWAITSEMAPHOREINFOS

      public static final int PWAITSEMAPHOREINFOS
      The struct member offsets.
    • COMMANDBUFFERINFOCOUNT

      public static final int COMMANDBUFFERINFOCOUNT
      The struct member offsets.
    • PCOMMANDBUFFERINFOS

      public static final int PCOMMANDBUFFERINFOS
      The struct member offsets.
    • SIGNALSEMAPHOREINFOCOUNT

      public static final int SIGNALSEMAPHOREINFOCOUNT
      The struct member offsets.
    • PSIGNALSEMAPHOREINFOS

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

    • VkSubmitInfo2

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