Plasma Engine  2.0
Loading...
Searching...
No Matches
plCommandBufferPoolVulkan Class Reference

Simple pool for command buffers. More...

#include <CommandBufferPoolVulkan.h>

Public Member Functions

 plCommandBufferPoolVulkan (plAllocator *pAllocator)
 
void Initialize (vk::Device device, plUInt32 graphicsFamilyIndex)
 
void DeInitialize ()
 
vk::CommandBuffer RequestCommandBuffer ()
 
void ReclaimCommandBuffer (vk::CommandBuffer &CommandBuffer)
 

Detailed Description

Simple pool for command buffers.

Do not call ReclaimCommandBuffer manually, instead call plGALDeviceVulkan::ReclaimLater which will make sure to reclaim the command buffer once it is no longer in use. Usage:

vk::CommandBuffer c = pPool->RequestCommandBuffer();
c.begin();
...
c.end();
plGALDeviceVulkan* pDevice = ...;
pDevice->ReclaimLater(c);
The Vulkan device implementation of the graphics abstraction layer.
Definition DeviceVulkan.h:58

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