Skip to content

Commit

Permalink
Attach a label to WebGPU render pass encoder even in the release engi…
Browse files Browse the repository at this point in the history
…ne (#7003)

Co-authored-by: Martin Valigursky <[email protected]>
  • Loading branch information
mvaligursky and Martin Valigursky authored Oct 2, 2024
1 parent e8aa2d6 commit b453c3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform/graphics/webgpu/webgpu-graphics-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ class WebgpuGraphicsDevice extends GraphicsDevice {

// start the pass
this.passEncoder = this.commandEncoder.beginRenderPass(renderPassDesc);
DebugHelper.setLabel(this.passEncoder, `${renderPass.name}-PassEncoder RT:${rt.name}`);
this.passEncoder.label = `${renderPass.name}-PassEncoder RT:${rt.name}`;

// push marker to the passEncoder
DebugGraphics.pushGpuMarker(this, `Pass:${renderPass.name} RT:${rt.name}`);
Expand Down Expand Up @@ -779,7 +779,6 @@ class WebgpuGraphicsDevice extends GraphicsDevice {

// create a new encoder for each pass
this.commandEncoder = this.wgpu.createCommandEncoder();
// DebugHelper.setLabel(this.commandEncoder, `${renderPass.name}-Encoder`);
DebugHelper.setLabel(this.commandEncoder, 'ComputePass-Encoder');

// clear cached encoder state
Expand Down

0 comments on commit b453c3c

Please sign in to comment.