To query the number of passes required to query a performance query pool on a physical device, call:
// Provided by VK_KHR_performance_query void vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR( VkPhysicalDevice physicalDevice, const VkQueryPoolPerformanceCreateInfoKHR* pPerformanceQueryCreateInfo, uint32_t* pNumPasses);
physicalDeviceis the handle to the physical device whose queue family performance query counter properties will be queried.
pPerformanceQueryCreateInfois a pointer to a
VkQueryPoolPerformanceCreateInfoKHRof the performance query that is to be created.
pNumPassesis a pointer to an integer related to the number of passes required to query the performance query pool, as described below.
queueFamilyIndex must be a
queue family of
The number of passes required to capture the counters specified in the
pCounters is returned in
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.
Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.