Command pools are objects from which command buffers acquire their memory. Memory itself is allocated implicitly and dynamically, but without it command buffers wouldn't have any storage space to hold the recorded commands. That's why, before we can allocate command buffers, we first need to create a memory pool for them.
Creating a command pool
How to do it...
- Create a variable of type VkDevice named logical_device and initialize it with a handle of a created logical device.
- Take the index of one of the queue families requested for the logical device. Store this index in a variable of type uint32_t named queue_family.
- Create a variable of type VkCommandPoolCreateInfo named command_pool_create_info. Use the following values for the members of this variable...