C Specification

Performance counters have an associated scope. This scope describes the granularity of a performance counter.

The performance counter scope types which may be returned in VkPerformanceCounterKHR::scope are:

typedef enum VkPerformanceCounterScopeKHR {
    VK_QUERY_SCOPE_COMMAND_BUFFER_KHR = 0,
    VK_QUERY_SCOPE_RENDER_PASS_KHR = 1,
    VK_QUERY_SCOPE_COMMAND_KHR = 2,
    VK_PERFORMANCE_COUNTER_SCOPE_MAX_ENUM_KHR = 0x7FFFFFFF
} VkPerformanceCounterScopeKHR;

Description

  • VK_QUERY_SCOPE_COMMAND_BUFFER_KHR - the performance counter scope is a single complete command buffer

  • VK_QUERY_SCOPE_RENDER_PASS_KHR - the performance counter scope is zero or more complete render passes. The performance query containing the performance counter must begin and end outside a render pass instance

  • VK_QUERY_SCOPE_COMMAND_KHR - the performance counter scope is zero or more commands

See Also

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.

Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.