Class VkSubmitInfo2

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

    public class VkSubmitInfo2
    extends org.lwjgl.system.Struct
    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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, WAITSEMAPHOREINFOCOUNT, PWAITSEMAPHOREINFOS, COMMANDBUFFERINFOCOUNT, PCOMMANDBUFFERINFOS, SIGNALSEMAPHOREINFOCOUNT, PSIGNALSEMAPHOREINFOS

        The struct member offsets.
    • Constructor Detail

      • VkSubmitInfo2

        public VkSubmitInfo2​(java.nio.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.