The requested counters become active when the first presentation command for the associated swapchain is processed by the presentation engine. To query the value of an active counter, use:
// Provided by VK_EXT_display_control VkResult vkGetSwapchainCounterEXT( VkDevice device, VkSwapchainKHR swapchain, VkSurfaceCounterFlagBitsEXT counter, uint64_t* pCounterValue);
deviceis the VkDevice associated with
swapchainis the swapchain from which to query the counter value.
counteris the counter to query.
pCounterValuewill return the current value of the counter.
If a counter is not available because the swapchain is out of date, the
implementation may return
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.