-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
constants.js
176 lines (155 loc) · 3.18 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/**
* Logs a frame number.
*
* @type {string}
* @category Debug
*/
export const TRACEID_RENDER_FRAME = 'RenderFrame';
/**
* Logs a frame time.
*
* @type {string}
* @category Debug
*/
export const TRACEID_RENDER_FRAME_TIME = 'RenderFrameTime';
/**
* Logs basic information about generated render passes.
*
* @type {string}
* @category Debug
*/
export const TRACEID_RENDER_PASS = 'RenderPass';
/**
* Logs additional detail for render passes.
*
* @type {string}
* @category Debug
*/
export const TRACEID_RENDER_PASS_DETAIL = 'RenderPassDetail';
/**
* Logs render actions created by the layer composition. Only executes when the
* layer composition changes.
*
* @type {string}
* @category Debug
*/
export const TRACEID_RENDER_ACTION = 'RenderAction';
/**
* Logs the allocation of render targets.
*
* @type {string}
* @category Debug
*/
export const TRACEID_RENDER_TARGET_ALLOC = 'RenderTargetAlloc';
/**
* Logs the allocation of textures.
*
* @type {string}
* @category Debug
*/
export const TRACEID_TEXTURE_ALLOC = 'TextureAlloc';
/**
* Logs the creation of shaders.
*
* @type {string}
* @category Debug
*/
export const TRACEID_SHADER_ALLOC = 'ShaderAlloc';
/**
* Logs the compilation time of shaders.
*
* @type {string}
* @category Debug
*/
export const TRACEID_SHADER_COMPILE = 'ShaderCompile';
/**
* Logs the vram use by the textures.
*
* @type {string}
* @category Debug
*/
export const TRACEID_VRAM_TEXTURE = 'VRAM.Texture';
/**
* Logs the vram use by the vertex buffers.
*
* @type {string}
* @category Debug
*/
export const TRACEID_VRAM_VB = 'VRAM.Vb';
/**
* Logs the vram use by the index buffers.
*
* @type {string}
* @category Debug
*/
export const TRACEID_VRAM_IB = 'VRAM.Ib';
/**
* Logs the vram use by the storage buffers.
*
* @type {string}
* @category Debug
*/
export const TRACEID_VRAM_SB = 'VRAM.Sb';
/**
* Logs the creation of bind groups.
*
* @type {string}
* @category Debug
*/
export const TRACEID_BINDGROUP_ALLOC = 'BindGroupAlloc';
/**
* Logs the creation of bind group formats.
*
* @type {string}
* @category Debug
*/
export const TRACEID_BINDGROUPFORMAT_ALLOC = 'BindGroupFormatAlloc';
/**
* Logs the creation of render pipelines. WebBPU only.
*
* @type {string}
* @category Debug
*/
export const TRACEID_RENDERPIPELINE_ALLOC = 'RenderPipelineAlloc';
/**
* Logs the creation of compute pipelines. WebGPU only.
*
* @type {string}
* @category Debug
*/
export const TRACEID_COMPUTEPIPELINE_ALLOC = 'ComputePipelineAlloc';
/**
* Logs the creation of pipeline layouts. WebBPU only.
*
* @type {string}
* @category Debug
*/
export const TRACEID_PIPELINELAYOUT_ALLOC = 'PipelineLayoutAlloc';
/**
* Logs the internal debug information for Elements.
*
* @type {string}
* @category Debug
*/
export const TRACE_ID_ELEMENT = "Element";
/**
* Logs the vram use by all textures in memory.
*
* @type {string}
* @category Debug
*/
export const TRACEID_TEXTURES = 'Textures';
/**
* Logs the render queue commands.
*
* @type {string}
* @category Debug
*/
export const TRACEID_RENDER_QUEUE = 'RenderQueue';
/**
* Logs the GPU timings.
*
* @type {string}
* @category Debug
*/
export const TRACEID_GPU_TIMINGS = 'GpuTimings';