21 #ifndef FRAMEWORK_COMMAND_BUFFER_MANAGER_HPP 22 #define FRAMEWORK_COMMAND_BUFFER_MANAGER_HPP 46 CommandBufferManager(VkDevice device, VkCommandBufferLevel bufferLevel,
unsigned graphicsQueueIndex);
60 VkDevice device = VK_NULL_HANDLE;
61 VkCommandPool pool = VK_NULL_HANDLE;
62 std::vector<VkCommandBuffer> buffers;
63 VkCommandBufferLevel commandBufferLevel;
The command buffer allocates command buffers and recycles them for us. This gives us a convenient int...
~CommandBufferManager()
Destructor.
void beginFrame()
Begins the frame. When this is called, all command buffers managed by this class are assumed to be re...
CommandBufferManager(VkDevice device, VkCommandBufferLevel bufferLevel, unsigned graphicsQueueIndex)
Constructor.
VkCommandBuffer requestCommandBuffer()
Requests a fresh or recycled command buffer which is in the reset state.