C Specification
To enumerate the available shader instrumentation metrics, call:
// Provided by VK_ARM_shader_instrumentation
VkResult vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM(
VkPhysicalDevice physicalDevice,
uint32_t* pDescriptionCount,
VkShaderInstrumentationMetricDescriptionARM* pDescriptions);
Parameters
-
physicalDeviceis the physical device. -
pDescriptionCountis a pointer to an integer related to the number of shader instrumentation metrics available or queried. -
pDescriptionsis eitherNULLor a pointer to an array of VkShaderInstrumentationMetricDescriptionARM structures.
Description
If pDescriptions is NULL, then the number of shader instrumentation
metrics available is returned in pDescriptionCount.
Otherwise, pDescriptionCount must point to a variable set by the
application to the number of elements in the pDescriptions array, and
on return the variable is overwritten with the number of structures actually
written to pDescriptions.
If pDescriptionCount is less than the number shader instrumentation
metrics available, at most pDescriptionCount structures will be
written, and VK_INCOMPLETE will be returned instead of
VK_SUCCESS, to indicate that not all the available shader
instrumentation metrics were returned.
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.