To query the current counter value of a semaphore created with a
VK_SEMAPHORE_TYPE_TIMELINE from the host,
// Provided by VK_VERSION_1_2 VkResult vkGetSemaphoreCounterValue( VkDevice device, VkSemaphore semaphore, uint64_t* pValue);
or the equivalent command
// Provided by VK_KHR_timeline_semaphore VkResult vkGetSemaphoreCounterValueKHR( VkDevice device, VkSemaphore semaphore, uint64_t* pValue);
deviceis the logical device that owns the semaphore.
semaphoreis the handle of the semaphore to query.
pValueis a pointer to a 64-bit integer value in which the current counter value of the semaphore is returned.
If a queue submission command is pending execution, then the value returned by this command may immediately be out of date.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.