To free command buffers, call:
// Provided by VK_VERSION_1_0
const VkCommandBuffer* pCommandBuffers);
deviceis the logical device that owns the command pool.
commandPoolis the command pool from which the command buffers were allocated.
commandBufferCountis the length of the
pCommandBuffersis a pointer to an array of handles of command buffers to free.
Freeing a command buffer does not return the memory used by command recording back to its parent command pool. This memory will be reclaimed the next time vkResetCommandPool is called.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.