Skip to content

WebGPURenderer: Consistent bindFramebuffer() usage.#32504

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev3
Dec 8, 2025
Merged

WebGPURenderer: Consistent bindFramebuffer() usage.#32504
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev3

Conversation

@Mugen87

@Mugen87 Mugen87 commented Dec 8, 2025

Copy link
Copy Markdown
Collaborator

Related issue: #32503

Description

Similar to #32503 but for gl.bindFramebuffer().

Note: When we cache WebGL resources via WebGLState, we must use the interface everywhere otherwise the cached state does not match the real state which can lead to confusing bugs. So the native gl.bindFramebuffer() command should only be used in WebGLState.bindFramebuffer().

@github-actions

github-actions Bot commented Dec 8, 2025

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 350.9
83.23
350.9
83.23
+0 B
+0 B
WebGPU 616.16
171.02
616.22
171.03
+55 B
+10 B
WebGPU Nodes 614.77
170.76
614.82
170.77
+55 B
+13 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 483.14
118.07
483.14
118.07
+0 B
+0 B
WebGPU 687.01
186.62
687.06
186.63
+55 B
+11 B
WebGPU Nodes 636.85
173.83
636.9
173.84
+55 B
+11 B

@Mugen87 Mugen87 merged commit 1246386 into mrdoob:dev Dec 8, 2025
10 checks passed
@Mugen87 Mugen87 added this to the r182 milestone Dec 8, 2025
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