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);
pub fn set_swapchain_present_timing_queue_size_ext(
device: vk::Device,
swapchain: vk::SwapchainKHR,
size: u32,
) -> vk::Result;
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.
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)
VUID-vkSetSwapchainPresentTimingQueueSizeEXT-device-parameter
device must be a valid VkDevice handle
VUID-vkSetSwapchainPresentTimingQueueSizeEXT-swapchain-parameter
swapchain must be a valid VkSwapchainKHR handle
VUID-vkSetSwapchainPresentTimingQueueSizeEXT-swapchain-parent
swapchain must have been created, allocated, or retrieved from device
Host Synchronization
- Host access to
swapchainmust be externally synchronized
Parent
VK_EXT_present_timingType
Function Prototype