When we have created a render pass and a framebuffer and we are ready to start recording commands needed to render a geometry, we must record an operation that begins the render pass. This also automatically starts its first subpass.
Beginning a render pass
How to do it...
- Take the handle of a command buffer stored in a variable of type VkCommandBuffer named command_buffer. Make sure the command buffer is in the recording state.
- Use the handle of the render pass to initialize a variable of type VkRenderPass named render_pass.
- Take the framebuffer that is compatible with the render_pass. Store its handle in a variable of type VkFramebuffer named framebuffer.
- Specify the dimensions of the render area into which rendering will be confined during the render pass....