Skip to content

Commit 56d0b32

Browse files
committed
WebGPURenderer: Clean up.
1 parent b0f4546 commit 56d0b32

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

examples/jsm/renderers/webgpu/WebGPUBindings.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class WebGPUBindings {
251251
array.set( object.matrixWorld.elements, 0 );
252252
array.set( object.modelViewMatrix.elements, 16 );
253253

254-
return true; // TODO: implement caching (return false when cache hits occurs)
254+
return true; // @TODO: implement caching (return false when cache hits occurs)
255255

256256
} );
257257

@@ -316,7 +316,7 @@ class WebGPUBindings {
316316
array.set( object.matrixWorld.elements, 0 );
317317
array.set( object.modelViewMatrix.elements, 16 );
318318

319-
return true; // TODO: implement caching (return false when cache hits occurs)
319+
return true; // @TODO: implement caching (return false when cache hits occurs)
320320

321321
} );
322322

@@ -346,7 +346,7 @@ class WebGPUBindings {
346346
array.set( object.matrixWorld.elements, 0 );
347347
array.set( object.modelViewMatrix.elements, 16 );
348348

349-
return true; // TODO: implement caching (return false when cache hits occurs)
349+
return true; // @TODO: implement caching (return false when cache hits occurs)
350350

351351
} );
352352

@@ -372,7 +372,7 @@ class WebGPUBindings {
372372
array.set( camera.projectionMatrix.elements, 0 );
373373
array.set( camera.matrixWorldInverse.elements, 16 );
374374

375-
return true; // TODO: implement caching (return false when cache hits occurs)
375+
return true; // @TODO: implement caching (return false when cache hits occurs)
376376

377377
} );
378378

examples/jsm/renderers/webgpu/WebGPUTextures.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class WebGPUTextures {
9595

9696
if ( textureProperties.textureGPU !== undefined ) {
9797

98-
// TODO: Avoid calling of destroy() in certain scenarios. When only the contents of a texture
98+
// @TODO: Avoid calling of destroy() in certain scenarios. When only the contents of a texture
9999
// are updated, a buffer upload should be sufficient. However, if the user changes
100100
// the dimensions of the texture, format or usage, a new instance of GPUTexture is required.
101101

@@ -178,7 +178,7 @@ class WebGPUTextures {
178178
height: height,
179179
depth: 1
180180
},
181-
format: GPUTextureFormat.BRGA8Unorm, // TODO: Make configurable
181+
format: GPUTextureFormat.BRGA8Unorm, // @TODO: Make configurable
182182
usage: GPUTextureUsage.OUTPUT_ATTACHMENT | GPUTextureUsage.SAMPLED
183183
} );
184184

@@ -201,7 +201,7 @@ class WebGPUTextures {
201201
height: height,
202202
depth: 1
203203
},
204-
format: GPUTextureFormat.Depth24PlusStencil8, // TODO: Make configurable
204+
format: GPUTextureFormat.Depth24PlusStencil8, // @TODO: Make configurable
205205
usage: GPUTextureUsage.OUTPUT_ATTACHMENT
206206
} );
207207

@@ -342,7 +342,7 @@ class WebGPUTextures {
342342
_copyBufferToTexture( image, format, textureGPU ) {
343343

344344
// this code assumes data textures in RGBA format
345-
// TODO: Consider to support valid buffer layouts with other formats like RGB
345+
// @TODO: Consider to support valid buffer layouts with other formats like RGB
346346

347347
const device = this.device;
348348
const data = image.data;

0 commit comments

Comments
 (0)