Skip to content

WebGPURenderer: Clean up.#33305

Merged
Mugen87 merged 3 commits into
mrdoob:devfrom
Mugen87:dev6
Apr 1, 2026
Merged

WebGPURenderer: Clean up.#33305
Mugen87 merged 3 commits into
mrdoob:devfrom
Mugen87:dev6

Conversation

@Mugen87

@Mugen87 Mugen87 commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator

Related issue: #33303

Description

Small follow-up of #33303.

} else if ( uniform.node.isStorageTextureNode === true ) {

const format = getFormat( texture );
const format = getFormat( texture, backend.device );

@Mugen87 Mugen87 Apr 1, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

When calling getFormat(), we should always pass the device so all formats can be correctly detected. At this point in the code flow, the device is definitely available.

@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 360.57
85.58
360.57
85.58
+0 B
+0 B
WebGPU 634.03
175.93
634.04
175.96
+13 B
+27 B
WebGPU Nodes 632.15
175.63
632.16
175.66
+13 B
+28 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 492.88
120.18
492.88
120.18
+0 B
+0 B
WebGPU 706.17
190.86
706.18
190.9
+13 B
+34 B
WebGPU Nodes 655.39
178.14
655.4
178.18
+13 B
+33 B

@Mugen87 Mugen87 added this to the r184 milestone Apr 1, 2026
@Mugen87 Mugen87 merged commit 8ebbd0a into mrdoob:dev Apr 1, 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.

1 participant