tp::ExternalSemaphore struct

A primitive for synchronizing against workloads other than jobs. It can be either a binary semaphore in which case the timestamp is ignored, or a timeline semaphore that is treated as signalled when the provided timestamp is reached.

Constructors, destructors, conversion operators

ExternalSemaphore()
Constructs a null tp::ExternalSemaphore.
ExternalSemaphore(VkSemaphoreHandle vkSemaphoreHandle, uint64_t timestamp = 0)
Constructs a tp::ExternalSemaphore out of existing Vulkan semaphore and optionally a timestamp.

Public functions

auto isNull() const -> bool
Returns true if the semaphore is null and not valid for use.

Function documentation

tp::ExternalSemaphore::ExternalSemaphore(VkSemaphoreHandle vkSemaphoreHandle, uint64_t timestamp = 0)

Constructs a tp::ExternalSemaphore out of existing Vulkan semaphore and optionally a timestamp.

Parameters
vkSemaphoreHandle The Vulkan VkSemaphore handle.
timestamp The timestamp to wait on for timeline semaphores. Ignored for binary semaphores.