Vulkan SDK for Android 1.1.1 Mali Developer Center
MaliSDK::CommandBufferManager Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CommandBufferManager()

MaliSDK::CommandBufferManager::CommandBufferManager ( VkDevice  device,
VkCommandBufferLevel  bufferLevel,
unsigned  graphicsQueueIndex 
)

Constructor.

Parameters
deviceThe Vulkan device
bufferLevelThe command buffer level to use, either VK_COMMAND_BUFFER_LEVEL_PRIMARY or VK_COMMAND_BUFFER_LEVEL_SECONDARY.
graphicsQueueIndexThe Vulkan queue family index for where we can submit graphics work.

Definition at line 25 of file command_buffer_manager.cpp.


The documentation for this class was generated from the following files: