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

Simple pool for fences. More...

#include <FencePoolVulkan.h>

Static Public Member Functions

static void Initialize (vk::Device device)
 
static void DeInitialize ()
 
static vk::Fence RequestFence ()
 
static void ReclaimFence (vk::Fence &fence)
 

Detailed Description

Simple pool for fences.

Do not call ReclaimFence manually, instead call plGALDeviceVulkan::ReclaimLater which will make sure to reclaim the fence once it is no longer in use. Fences are reclaimed once the frame in plGALDeviceVulkan is reused (currently 4 frames are in rotation). Do not call resetFences, this is already done by ReclaimFence. Usage:

vk::Fence f = plFencePoolVulkan::RequestFence();
<insert fence somewhere>
<wait for fence>
plGALDeviceVulkan* pDevice = ...;
pDevice->ReclaimLater(f);
The Vulkan device implementation of the graphics abstraction layer.
Definition DeviceVulkan.h:58

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