Skip to content

WebGPURenderer: Fix depth/stencil format out-of-sync bug.#32731

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev5
Jan 12, 2026
Merged

WebGPURenderer: Fix depth/stencil format out-of-sync bug.#32731
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev5

Conversation

@Mugen87

@Mugen87 Mugen87 commented Jan 12, 2026

Copy link
Copy Markdown
Collaborator

Fixed #32706.

Description

Render pass encoder and pipeline must use the same attachment state when rendering which is currently not true when a render pass disables depth but has a depth texture instance assigned to its render target. The PR makes sure encoder and pipeline handle this use case in a common way which means depth must be enabled so a depth texture can be used.

@github-actions

github-actions Bot commented Jan 12, 2026

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 355.41
84.51
355.41
84.51
+0 B
+0 B
WebGPU 621.22
172.51
621.21
172.51
-13 B
-4 B
WebGPU Nodes 619.83
172.28
619.82
172.27
-13 B
-4 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 487.36
119.29
487.36
119.29
+0 B
+0 B
WebGPU 691.88
187.8
691.86
187.79
-13 B
-4 B
WebGPU Nodes 641.68
174.96
641.66
174.96
-13 B
-4 B

@Mugen87 Mugen87 added this to the r183 milestone Jan 12, 2026
@Mugen87 Mugen87 merged commit 3fddc5c into mrdoob:dev Jan 12, 2026
10 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.

crash if using scene.background hdr + Volumetric Lighting

1 participant