C Specification
In order to collect timing information about presentation, a swapchain needs an internal queue to store asynchronously updated results until applications collect them.
To allocate the swapchain’s internal timing results queue, call:
// Provided by VK_EXT_present_timing
VkResult vkSetSwapchainPresentTimingQueueSizeEXT(
VkDevice device,
VkSwapchainKHR swapchain,
uint32_t size);
Parameters
-
deviceis the device associated withswapchain. -
swapchainis the swapchain to allocate a results queue for. -
sizeis the requested number of slots in the internal results queue.
Description
If this function is called multiple times, the internal queue is reallocated
to fit the new size.
If the new size is less than the current number of outstanding
results, VK_NOT_READY is returned and no allocation is performed.
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.