• 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 Buffer Descriptor Set Cache Hit Rate.
32     VulkanShaderBufferDSHitRate,
33     // Buffer Allocations Made By vk::DynamicBuffer.
34     VulkanDynamicBufferAllocations,
35 
36     InvalidEnum,
37     EnumCount = InvalidEnum,
38 };
39 
40 // We can use this "X" macro to generate multiple code patterns.
41 #define ANGLE_WIDGET_ID_X(PROC)                 \
42     PROC(FPS)                                   \
43     PROC(VulkanLastValidationMessage)           \
44     PROC(VulkanValidationMessageCount)          \
45     PROC(VulkanRenderPassCount)                 \
46     PROC(VulkanRenderPassBufferCount)           \
47     PROC(VulkanSecondaryCommandBufferPoolWaste) \
48     PROC(VulkanWriteDescriptorSetCount)         \
49     PROC(VulkanDescriptorSetAllocations)        \
50     PROC(VulkanShaderBufferDSHitRate)           \
51     PROC(VulkanDynamicBufferAllocations)
52 
53 }  // namespace gl
54