![]() |
Vulkan SDK for Android 1.1.1
Mali Developer Center
|
The command buffer allocates command buffers and recycles them for us. This gives us a convenient interface where we can request command buffers for use when rendering. The manager is not thread-safe and for rendering in multiple threads, multiple per-thread managers should be used. More...
#include <command_buffer_manager.hpp>
Public Member Functions | |
CommandBufferManager (VkDevice device, VkCommandBufferLevel bufferLevel, unsigned graphicsQueueIndex) | |
Constructor. More... | |
~CommandBufferManager () | |
Destructor. | |
VkCommandBuffer | requestCommandBuffer () |
Requests a fresh or recycled command buffer which is in the reset state. | |
void | beginFrame () |
Begins the frame. When this is called, all command buffers managed by this class are assumed to be recycleable. | |
The command buffer allocates command buffers and recycles them for us. This gives us a convenient interface where we can request command buffers for use when rendering. The manager is not thread-safe and for rendering in multiple threads, multiple per-thread managers should be used.
Definition at line 36 of file command_buffer_manager.hpp.
MaliSDK::CommandBufferManager::CommandBufferManager | ( | VkDevice | device, |
VkCommandBufferLevel | bufferLevel, | ||
unsigned | graphicsQueueIndex | ||
) |
Constructor.
device | The Vulkan device |
bufferLevel | The command buffer level to use, either VK_COMMAND_BUFFER_LEVEL_PRIMARY or VK_COMMAND_BUFFER_LEVEL_SECONDARY . |
graphicsQueueIndex | The Vulkan queue family index for where we can submit graphics work. |
Definition at line 25 of file command_buffer_manager.cpp.