Summary
In this chapter, we rendered our first Hello World! program in Vulkan. Drawing it consists of two stages—preparation and rendering (execution). Preparation records the command buffers and the rendering executes them. The command buffers are recorded once and executed multiple times unless there is an explicit change in the pipeline state objects.
The preparation of the command buffer involves recording the Render Pass and graphics pipeline binding and drawing parameters, such as vertex buffers, viewport, scissor, and so on. Finally, the drawing API command is specified; we demonstrated both index- and nonindex-based drawing APIs using the sample application.
The recorded command buffer is executed in the rendering stage. The execution process acquires the swapchain image and submits the command buffer into the graphics queue. Painting is done on the acquired swapchain image. Once this is complete the image is sent to the presentation engine to be displayed on the output display...