• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // GENERATED FILE - DO NOT EDIT.
2 // Generated by gen_overlay_widgets.py using data from overlay_widgets.json.
3 //
4 // Copyright 2019 The ANGLE Project Authors. All rights reserved.
5 // Use of this source code is governed by a BSD-style license that can be
6 // found in the LICENSE file.
7 //
8 // Overlay_autogen.cpp:
9 //   Autogenerated overlay widget declarations.
10 
11 namespace gl
12 {
13 enum class WidgetId
14 {
15     // Frames per second (Count/Second).
16     FPS,
17     // Last validation error (Text).
18     VulkanLastValidationMessage,
19     // Number of validation errors and warnings (Count).
20     VulkanValidationMessageCount,
21     // Number of RenderPasses in a frame (Count).
22     VulkanRenderPassCount,
23     // Number of buffers used in RenderPasses (Count).
24     VulkanRenderPassBufferCount,
25     // Secondary Command Buffer pool memory waste (Bytes).
26     VulkanSecondaryCommandBufferPoolWaste,
27     // Number of Descriptor Set writes in a frame (Count).
28     VulkanWriteDescriptorSetCount,
29     // Descriptor Set Allocations.
30     VulkanDescriptorSetAllocations,
31     // Shader Resource Descriptor Set Cache Hit Rate.
32     VulkanShaderResourceDSHitRate,
33     // Buffer Allocations Made By vk::DynamicBuffer.
34     VulkanDynamicBufferAllocations,
35     // Total size of all descriptor set caches
36     VulkanDescriptorCacheSize,
37     // Number of cached Texture descriptor sets
38     VulkanTextureDescriptorCacheSize,
39     // Number of cached default uniform descriptor sets
40     VulkanUniformDescriptorCacheSize,
41     // Total size of all keys in the descriptor set caches
42     VulkanDescriptorCacheKeySize,
43 
44     InvalidEnum,
45     EnumCount = InvalidEnum,
46 };
47 
48 // We can use this "X" macro to generate multiple code patterns.
49 #define ANGLE_WIDGET_ID_X(PROC)                 \
50     PROC(FPS)                                   \
51     PROC(VulkanLastValidationMessage)           \
52     PROC(VulkanValidationMessageCount)          \
53     PROC(VulkanRenderPassCount)                 \
54     PROC(VulkanRenderPassBufferCount)           \
55     PROC(VulkanSecondaryCommandBufferPoolWaste) \
56     PROC(VulkanWriteDescriptorSetCount)         \
57     PROC(VulkanDescriptorSetAllocations)        \
58     PROC(VulkanShaderResourceDSHitRate)         \
59     PROC(VulkanDynamicBufferAllocations)        \
60     PROC(VulkanDescriptorCacheSize)             \
61     PROC(VulkanTextureDescriptorCacheSize)      \
62     PROC(VulkanUniformDescriptorCacheSize)      \
63     PROC(VulkanDescriptorCacheKeySize)
64 
65 }  // namespace gl
66