When all commands from all subpasses are already recorded, we need to end (stop or finish) a render pass.
Ending a render pass
How to do it...
- Take the handle of a command buffer and store it in a variable of type VkCommandBuffer named command_buffer. Make sure the command buffer is in a recording state and that the operation of beginning a render pass was already recorded in it.
- Call vkCmdEndRenderPass( command_buffer ) for which provide the command_buffer variable.
How it works...
To end a render pass, we need to call a single function:
vkCmdEndRenderPass( command_buffer );
Recording this function in a command...