21 #ifndef FRAMEWORK_SEMAPHORE_MANAGER_HPP 22 #define FRAMEWORK_SEMAPHORE_MANAGER_HPP 24 #include "framework/common.hpp" 54 VkDevice device = VK_NULL_HANDLE;
55 std::vector<VkSemaphore> recycledSemaphores;
SemaphoreManager(VkDevice device)
Constructor.
~SemaphoreManager()
Destructor.
The SemaphoreManager keeps track of semaphores.
void addClearedSemaphore(VkSemaphore semaphore)
Gives ownership of a cleared semaphore to the semaphore manager.
VkSemaphore getClearedSemaphore()
Takes ownership of a recycled semaphore or creates a new one.