Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Aug 21, 2025

Related issue: -

Description

The WebGL backend of WebGPURenderer is currently unable to perform a manual clear with a multisampled render target.

That happens because of a missing blit operation which does exist for the normal auto-clear. The code in WebGLBackend is slightly refactored to ensure renderer.clear() works as expected.

The error itself can be reproduced with: https://jsfiddle.net/r15v3ebd/4/

@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 338.91
79.1
338.91
79.1
+0 B
+0 B
WebGPU 576.96
159.14
577.07
159.18
+116 B
+46 B
WebGPU Nodes 575.57
158.89
575.68
158.94
+116 B
+47 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 470.7
113.91
470.7
113.91
+0 B
+0 B
WebGPU 647.51
175.1
647.63
175.14
+116 B
+46 B
WebGPU Nodes 601.59
164.25
601.71
164.3
+116 B
+47 B

@Mugen87 Mugen87 added this to the r180 milestone Aug 21, 2025
}

this._currentContext = previousContext;
const renderTarget = renderContext.renderTarget;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The subsequent red code is moved into a new method _resolveRenderTarget().

@Mugen87 Mugen87 merged commit 8c8479d into mrdoob:dev Aug 22, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant