To enumerate the performance query counters available on a queue family of a physical device, call:
VkResult vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, uint32_t* pCounterCount, VkPerformanceCounterKHR* pCounters, VkPerformanceCounterDescriptionKHR* pCounterDescriptions);
physicalDeviceis the handle to the physical device whose queue family performance query counter properties will be queried.
queueFamilyIndexis the index into the queue family of the physical device we want to get properties for.
pCounterCountis a pointer to an integer related to the number of counters available or queried, as described below.
NULLor a pointer to an array of VkPerformanceCounterKHR structures.
NULLor a pointer to an array of VkPerformanceCounterDescriptionKHR structures.
the number of counters available is returned in
pCounterCount must point to a variable set by the user to
the number of elements in the
or both arrays and on return the variable is overwritten with the number of
structures actually written out.
pCounterCount is less than the number of counters available, at
pCounterCount structures will be written and
will be returned instead of
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.