Plasma Engine  2.0
Loading...
Searching...
No Matches
SemaphorePoolVulkan.h
1#pragma once
2
3#include <RendererVulkan/RendererVulkanDLL.h>
4
5#include <vulkan/vulkan.hpp>
6
17class PL_RENDERERVULKAN_DLL plSemaphorePoolVulkan
18{
19public:
20 static void Initialize(vk::Device device);
21 static void DeInitialize();
22
23 static vk::Semaphore RequestSemaphore();
24 static void ReclaimSemaphore(vk::Semaphore& semaphore);
25
26private:
27 static plHybridArray<vk::Semaphore, 4> s_semaphores;
28 static vk::Device s_device;
29};
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
Simple pool for semaphores.
Definition SemaphorePoolVulkan.h:18