![]() |
Vulkan SDK for Android 1.1.1
Mali Developer Center
|
The SemaphoreManager keeps track of semaphores. More...
#include <semaphore_manager.hpp>
Public Member Functions | |
SemaphoreManager (VkDevice device) | |
Constructor. More... | |
~SemaphoreManager () | |
Destructor. | |
VkSemaphore | getClearedSemaphore () |
Takes ownership of a recycled semaphore or creates a new one. More... | |
void | addClearedSemaphore (VkSemaphore semaphore) |
Gives ownership of a cleared semaphore to the semaphore manager. More... | |
The SemaphoreManager keeps track of semaphores.
This class is mostly used by the WSI implementation so we can recycle semaphores.
Definition at line 33 of file semaphore_manager.hpp.
MaliSDK::SemaphoreManager::SemaphoreManager | ( | VkDevice | device | ) |
Constructor.
device | The Vulkan device |
Definition at line 25 of file semaphore_manager.cpp.
void MaliSDK::SemaphoreManager::addClearedSemaphore | ( | VkSemaphore | semaphore | ) |
Gives ownership of a cleared semaphore to the semaphore manager.
semaphore | A cleared semaphore. The API user relinquishes ownership of the semaphore. |
Definition at line 36 of file semaphore_manager.cpp.
VkSemaphore MaliSDK::SemaphoreManager::getClearedSemaphore | ( | ) |
Takes ownership of a recycled semaphore or creates a new one.
Definition at line 41 of file semaphore_manager.cpp.