Commands that are recorded inside a render pass are divided into subpasses. When a set of commands from a given subpass is already recorded and we want to record commands for another subpass, we need to switch (or progress) to the next subpass.
Progressing to the next subpass
How to do it...
- Take the handle of a command buffer that's being recorded and store it in a variable of type VkCommandBuffer named command_buffer. Make sure the operation of beginning a render pass was already recorded in the command_buffer.
- Specify how subpass commands are recorded: directly or through a secondary command buffer. Store the appropriate value in a variable of type VkSubpassContents named subpass_contents (refer to the Beginning a render pass recipe).
- Call vkCmdNextSubpass...