vkGetSwapchainTimingPropertiesEXT(3)
C Specification
The implementation maintains an internal monotonically increasing counter which updates when the presentation engine’s timing properties are modified.
To query the presentation engine’s current timing properties for a given swapchain, call:
// Provided by VK_EXT_present_timing
VkResult vkGetSwapchainTimingPropertiesEXT(
VkDevice device,
VkSwapchainKHR swapchain,
VkSwapchainTimingPropertiesEXT* pSwapchainTimingProperties,
uint64_t* pSwapchainTimingPropertiesCounter);
Parameters
-
deviceis the device associated withswapchain. -
swapchainis the swapchain to obtain timing properties for. -
pSwapchainTimingPropertiesis a pointer to an instance of the VkSwapchainTimingPropertiesEXT structure. -
pSwapchainTimingPropertiesCounterisNULLor a pointer to a 64-bit unsigned integer set by the implementation to the current value of the swapchain’s internal timing properties counter.
Description
If vkGetSwapchainTimingPropertiesEXT returns VK_NOT_READY, the
implementation was not able to determine the current refresh cycle duration.
Some platforms may not provide timing properties until after at least one
image has been presented to the swapchain.
If timing properties change for the swapchain, these platforms may
not provide updated results until after at least one additional image has
been presented to the swapchain.
Document Notes
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.