O'Reilly logo

Learning Vulkan by Parminder Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing the drawing object

The preparation of the drawing object is implemented in the prepare() function; this function has already been covered in Chapter 7, Buffer Resource, Render Pass, Framebuffer, and Shaders with SPIR-V. For more information, please refer to the subsection Setting the background color in Render Pass instance under Clearing the background color.

Recording Render Pass commands

The Render Pass instance records the command's single subpass at a time. A Render Pass may contain one or more subpasses. For each subpass, the commands are recorded using the vkCmdBeginRenderPass() and vkCmdEndRenderPass() APIs. These two APIs together define a scope under which iterating through different subpasses will record the commands for that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required