Understanding command pool and buffer APIs
This section will explain the different APIs that can be used to manage the command pool and command buffers. Here, we will understand the process of creating a command buffer pool that will be used for command buffer allocation. We will also look at the process of resetting and destroying APIs.
The next section of this chapter will be based on implementing these APIs in a ready-to-use wrapper class. The wrapper implementation will be highly useful in the remaining chapters of this book, where we will extensively make use of the command buffer.
Tip
As a prerequisite for the upcoming chapters, the Implementing the command pool and command buffers, Recording command buffers, and Managing memory in Vulkan sections are important.
Creating a command pool
A command pool is created using the vkCreateCommandPool()
API. It accepts a VkCommandPoolCreateInfo
control structure, which guides the implementation about the nature of command buffers that are going to...