Skip to content

Commit 245d7c0

Browse files
authored
Remove redundant @type tags from constants (#7557)
* Remove redundant @type tags from constants * Remove some newlines
1 parent b8b3830 commit 245d7c0

File tree

21 files changed

+0
-554
lines changed

21 files changed

+0
-554
lines changed

src/core/constants.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
/**
22
* Logs a frame number.
33
*
4-
* @type {string}
54
* @category Debug
65
*/
76
export const TRACEID_RENDER_FRAME = 'RenderFrame';
87

98
/**
109
* Logs a frame time.
1110
*
12-
* @type {string}
1311
* @category Debug
1412
*/
1513
export const TRACEID_RENDER_FRAME_TIME = 'RenderFrameTime';
1614

1715
/**
1816
* Logs basic information about generated render passes.
1917
*
20-
* @type {string}
2118
* @category Debug
2219
*/
2320
export const TRACEID_RENDER_PASS = 'RenderPass';
2421

2522
/**
2623
* Logs additional detail for render passes.
2724
*
28-
* @type {string}
2925
* @category Debug
3026
*/
3127
export const TRACEID_RENDER_PASS_DETAIL = 'RenderPassDetail';
@@ -34,143 +30,125 @@ export const TRACEID_RENDER_PASS_DETAIL = 'RenderPassDetail';
3430
* Logs render actions created by the layer composition. Only executes when the
3531
* layer composition changes.
3632
*
37-
* @type {string}
3833
* @category Debug
3934
*/
4035
export const TRACEID_RENDER_ACTION = 'RenderAction';
4136

4237
/**
4338
* Logs the allocation of render targets.
4439
*
45-
* @type {string}
4640
* @category Debug
4741
*/
4842
export const TRACEID_RENDER_TARGET_ALLOC = 'RenderTargetAlloc';
4943

5044
/**
5145
* Logs the allocation of textures.
5246
*
53-
* @type {string}
5447
* @category Debug
5548
*/
5649
export const TRACEID_TEXTURE_ALLOC = 'TextureAlloc';
5750

5851
/**
5952
* Logs the creation of shaders.
6053
*
61-
* @type {string}
6254
* @category Debug
6355
*/
6456
export const TRACEID_SHADER_ALLOC = 'ShaderAlloc';
6557

6658
/**
6759
* Logs the compilation time of shaders.
6860
*
69-
* @type {string}
7061
* @category Debug
7162
*/
7263
export const TRACEID_SHADER_COMPILE = 'ShaderCompile';
7364

7465
/**
7566
* Logs the vram use by the textures.
7667
*
77-
* @type {string}
7868
* @category Debug
7969
*/
8070
export const TRACEID_VRAM_TEXTURE = 'VRAM.Texture';
8171

8272
/**
8373
* Logs the vram use by the vertex buffers.
8474
*
85-
* @type {string}
8675
* @category Debug
8776
*/
8877
export const TRACEID_VRAM_VB = 'VRAM.Vb';
8978

9079
/**
9180
* Logs the vram use by the index buffers.
9281
*
93-
* @type {string}
9482
* @category Debug
9583
*/
9684
export const TRACEID_VRAM_IB = 'VRAM.Ib';
9785

9886
/**
9987
* Logs the vram use by the storage buffers.
10088
*
101-
* @type {string}
10289
* @category Debug
10390
*/
10491
export const TRACEID_VRAM_SB = 'VRAM.Sb';
10592

10693
/**
10794
* Logs the creation of bind groups.
10895
*
109-
* @type {string}
11096
* @category Debug
11197
*/
11298
export const TRACEID_BINDGROUP_ALLOC = 'BindGroupAlloc';
11399

114100
/**
115101
* Logs the creation of bind group formats.
116102
*
117-
* @type {string}
118103
* @category Debug
119104
*/
120105
export const TRACEID_BINDGROUPFORMAT_ALLOC = 'BindGroupFormatAlloc';
121106

122107
/**
123108
* Logs the creation of render pipelines. WebBPU only.
124109
*
125-
* @type {string}
126110
* @category Debug
127111
*/
128112
export const TRACEID_RENDERPIPELINE_ALLOC = 'RenderPipelineAlloc';
129113

130114
/**
131115
* Logs the creation of compute pipelines. WebGPU only.
132116
*
133-
* @type {string}
134117
* @category Debug
135118
*/
136119
export const TRACEID_COMPUTEPIPELINE_ALLOC = 'ComputePipelineAlloc';
137120

138121
/**
139122
* Logs the creation of pipeline layouts. WebBPU only.
140123
*
141-
* @type {string}
142124
* @category Debug
143125
*/
144126
export const TRACEID_PIPELINELAYOUT_ALLOC = 'PipelineLayoutAlloc';
145127

146128
/**
147129
* Logs the internal debug information for Elements.
148130
*
149-
* @type {string}
150131
* @category Debug
151132
*/
152133
export const TRACE_ID_ELEMENT = 'Element';
153134

154135
/**
155136
* Logs the vram use by all textures in memory.
156137
*
157-
* @type {string}
158138
* @category Debug
159139
*/
160140
export const TRACEID_TEXTURES = 'Textures';
161141

162142
/**
163143
* Logs the render queue commands.
164144
*
165-
* @type {string}
166145
* @category Debug
167146
*/
168147
export const TRACEID_RENDER_QUEUE = 'RenderQueue';
169148

170149
/**
171150
* Logs the GPU timings.
172151
*
173-
* @type {string}
174152
* @category Debug
175153
*/
176154
export const TRACEID_GPU_TIMINGS = 'GpuTimings';

src/core/math/constants.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
/**
22
* A linear interpolation scheme.
33
*
4-
* @type {number}
54
* @category Math
65
*/
76
export const CURVE_LINEAR = 0;
87

98
/**
109
* A smooth step interpolation scheme.
1110
*
12-
* @type {number}
1311
* @category Math
1412
*/
1513
export const CURVE_SMOOTHSTEP = 1;
1614

1715
/**
1816
* Cardinal spline interpolation scheme. For a Catmull-Rom spline, specify a curve tension of 0.5.
1917
*
20-
* @type {number}
2118
* @category Math
2219
*/
2320
export const CURVE_SPLINE = 4;
2421

2522
/**
2623
* A stepped interpolator that does not perform any blending.
2724
*
28-
* @type {number}
2925
* @category Math
3026
*/
3127
export const CURVE_STEP = 5;

src/extras/gizmo/constants.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,69 @@
11
/**
22
* Local coordinate space.
33
*
4-
* @type {string}
54
* @category Gizmo
65
*/
76
export const GIZMOSPACE_LOCAL = 'local';
87

98
/**
109
* World coordinate space.
1110
*
12-
* @type {string}
1311
* @category Gizmo
1412
*/
1513
export const GIZMOSPACE_WORLD = 'world';
1614

1715
/**
1816
* Gizmo axis for the line X.
1917
*
20-
* @type {string}
2118
* @category Gizmo
2219
*/
2320
export const GIZMOAXIS_X = 'x';
2421

2522
/**
2623
* Gizmo axis for the line Y.
2724
*
28-
* @type {string}
2925
* @category Gizmo
3026
*/
3127
export const GIZMOAXIS_Y = 'y';
3228

3329
/**
3430
* Gizmo axis for the line Z.
3531
*
36-
* @type {string}
3732
* @category Gizmo
3833
*/
3934
export const GIZMOAXIS_Z = 'z';
4035

4136
/**
4237
* Gizmo axis for the plane YZ.
4338
*
44-
* @type {string}
4539
* @category Gizmo
4640
*/
4741
export const GIZMOAXIS_YZ = 'yz';
4842

4943
/**
5044
* Gizmo axis for the plane XZ.
5145
*
52-
* @type {string}
5346
* @category Gizmo
5447
*/
5548
export const GIZMOAXIS_XZ = 'xz';
5649

5750
/**
5851
* Gizmo axis for the plane XY.
5952
*
60-
* @type {string}
6153
* @category Gizmo
6254
*/
6355
export const GIZMOAXIS_XY = 'xy';
6456

6557
/**
6658
* Gizmo axis for all directions XYZ.
6759
*
68-
* @type {string}
6960
* @category Gizmo
7061
*/
7162
export const GIZMOAXIS_XYZ = 'xyz';
7263

7364
/**
7465
* Gizmo axis for facing the camera (facing the camera).
7566
*
76-
* @type {string}
7767
* @category Gizmo
7868
*/
7969
export const GIZMOAXIS_FACE = 'face';

src/extras/render-passes/constants.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/**
22
* SSAO is disabled.
33
*
4-
* @type {string}
54
* @category Graphics
65
*/
76
export const SSAOTYPE_NONE = 'none';
@@ -11,7 +10,6 @@ export const SSAOTYPE_NONE = 'none';
1110
* lighting. This results in ambient occlusion being more pronounced in areas where direct light is
1211
* obstructed, enhancing realism.
1312
*
14-
* @type {string}
1513
* @category Graphics
1614
*/
1715
export const SSAOTYPE_LIGHTING = 'lighting';
@@ -21,7 +19,6 @@ export const SSAOTYPE_LIGHTING = 'lighting';
2119
* overlays ambient occlusion across the image, disregarding direct lighting interactions. While
2220
* this may sacrifice some realism, it can be advantageous for achieving specific artistic styles.
2321
*
24-
* @type {string}
2522
* @category Graphics
2623
*/
2724
export const SSAOTYPE_COMBINE = 'combine';

src/framework/anim/constants.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
/**
22
* A stepped interpolation scheme.
33
*
4-
* @type {number}
54
* @category Animation
65
*/
76
export const INTERPOLATION_STEP = 0;
87

98
/**
109
* A linear interpolation scheme.
1110
*
12-
* @type {number}
1311
* @category Animation
1412
*/
1513
export const INTERPOLATION_LINEAR = 1;
1614

1715
/**
1816
* A cubic spline interpolation scheme.
1917
*
20-
* @type {number}
2118
* @category Animation
2219
*/
2320
export const INTERPOLATION_CUBIC = 2;

0 commit comments

Comments
 (0)