Vulkan SDK for Android 1.1.1 Mali Developer Center
MaliSDK::SemaphoreManager Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SemaphoreManager()

MaliSDK::SemaphoreManager::SemaphoreManager ( VkDevice  device)

Constructor.

Parameters
deviceThe Vulkan device

Definition at line 25 of file semaphore_manager.cpp.

Member Function Documentation

◆ addClearedSemaphore()

void MaliSDK::SemaphoreManager::addClearedSemaphore ( VkSemaphore  semaphore)

Gives ownership of a cleared semaphore to the semaphore manager.

Parameters
semaphoreA cleared semaphore. The API user relinquishes ownership of the semaphore.

Definition at line 36 of file semaphore_manager.cpp.

◆ getClearedSemaphore()

VkSemaphore MaliSDK::SemaphoreManager::getClearedSemaphore ( )

Takes ownership of a recycled semaphore or creates a new one.

Returns
A VkSemaphore. This semaphore is owned by the API user and must be destroyed or given back to the semaphore manager.

Definition at line 41 of file semaphore_manager.cpp.


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