Class Semaphore#

Inheritance Relationships#

Derived Type#

Class Documentation#

class Semaphore#

Subclassed by TRAP::Graphics::API::VulkanSemaphore

Public Functions

virtual ~Semaphore()#

Destructor.

consteval Semaphore(const Semaphore&) noexcept = delete#

Copy constructor.

consteval Semaphore &operator=(const Semaphore&) noexcept = delete#

Copy assignment operator.

constexpr Semaphore(Semaphore&&) noexcept = default#

Move constructor.

Semaphore &operator=(Semaphore&&) noexcept = default#

Move assignment operator.

constexpr bool IsSignaled() const noexcept#

Is the semaphore signaled?

Returns:

True if the semaphore is signaled, false otherwise.

Public Static Functions

static TRAP::Ref<Semaphore> Create(std::string_view name = "")#

Create a new semaphore.

Parameters:

nameOptional: Debug name used in GPU-profile

Returns:

Created semaphore.

Protected Functions

Semaphore()#

Constructor.

Protected Attributes

bool m_signaled = false#