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

Simple pool for semaphores. More...

#include <SemaphorePoolVulkan.h>

Static Public Member Functions

static void Initialize (vk::Device device)
 
static void DeInitialize ()
 
static vk::Semaphore RequestSemaphore ()
 
static void ReclaimSemaphore (vk::Semaphore &semaphore)
 

Detailed Description

Simple pool for semaphores.

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

vk::Semaphore s = plSemaphorePoolVulkan::RequestSemaphore();
...
plGALDeviceVulkan* pDevice = ...;
pDevice->ReclaimLater(s);

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