Function Prototype

vkSetSwapchainPresentTimingQueueSizeEXT

Allocate memory for the swapchain-internal timing results queue

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:

VkResult vkSetSwapchainPresentTimingQueueSizeEXT(
    VkDevice device,
    VkSwapchainKHR swapchain,
    uint32_t size);
  • device is the device associated with swapchain.
  • swapchain is the swapchain to allocate a results queue for.
  • size is the requested number of slots in the internal results queue.

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.

Valid Usage

VUID-vkSetSwapchainPresentTimingQueueSizeEXT-swapchain-12229

swapchain must have been created with VkSwapchainCreateInfoKHR::flags containing VK_SWAPCHAIN_CREATE_PRESENT_TIMING_BIT_EXT

Valid Usage (Implicit)

Host Synchronization

  • Host access to swapchain must be externally synchronized