vkCmdNextSubpass2(3)
C Specification
To transition to the next subpass in the render pass instance afterrecording the commands for a subpass, call:
| This functionality is superseded byVulkan Version 1.4. SeeLegacy Functionality for more information. |
// Provided by VK_VERSION_1_2void vkCmdNextSubpass2( VkCommandBuffer commandBuffer, const VkSubpassBeginInfo* pSubpassBeginInfo, const VkSubpassEndInfo* pSubpassEndInfo);// Provided by VK_KHR_create_renderpass2// Equivalent to vkCmdNextSubpass2void vkCmdNextSubpass2KHR( VkCommandBuffer commandBuffer, const VkSubpassBeginInfo* pSubpassBeginInfo, const VkSubpassEndInfo* pSubpassEndInfo);Parameters
commandBufferis the command buffer in which to record thecommand.pSubpassBeginInfois a pointer to aVkSubpassBeginInfostructure containing information about the subpass which is about tobegin rendering.pSubpassEndInfois a pointer to aVkSubpassEndInfo structurecontaining information about how the previous subpass will be ended.
Description
vkCmdNextSubpass2 is semantically identical tovkCmdNextSubpass,except that it is extensible, and thatcontents is provided as part ofan extensible structure instead of as a flat parameter.
VUID-vkCmdNextSubpass2-commandBuffer-parameter
commandBuffermust be a validVkCommandBuffer handleVUID-vkCmdNextSubpass2-pSubpassBeginInfo-parameter
pSubpassBeginInfomust be a valid pointer to a validVkSubpassBeginInfo structureVUID-vkCmdNextSubpass2-pSubpassEndInfo-parameter
pSubpassEndInfomust be a valid pointer to a validVkSubpassEndInfo structureVUID-vkCmdNextSubpass2-commandBuffer-recording
commandBuffermust be in therecording stateVUID-vkCmdNextSubpass2-commandBuffer-cmdpool
TheVkCommandPoolthatcommandBufferwas allocated frommust supportVK_QUEUE_GRAPHICS_BIT operationsVUID-vkCmdNextSubpass2-renderpass
This commandmust only be called inside of a render pass instanceVUID-vkCmdNextSubpass2-suspended
This commandmust not be called between suspended render pass instancesVUID-vkCmdNextSubpass2-videocoding
This commandmust only be called outside of a video coding scopeVUID-vkCmdNextSubpass2-bufferlevel
commandBuffermust be a primaryVkCommandBuffer
Host access to
commandBuffermust be externally synchronizedHost access to the
VkCommandPoolthatcommandBufferwas allocated frommust be externally synchronized
| Command Buffer Levels | Render Pass Scope | Video Coding Scope | Supported Queue Types | Command Type |
|---|---|---|---|---|
Primary | Inside | Outside | VK_QUEUE_GRAPHICS_BIT | Action |
vkCmdNextSubpass2 is not affected byconditional rendering
Document Notes
For more information, see theVulkan Specification.
This page is extracted from the Vulkan Specification.Fixes and changes should be made to the Specification, not directly.