Skip to content

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Aug 20, 2025

Related issue: #31690

Description

According to https://www.w3.org/TR/webgpu/#packed-formats, rgb9e5ufloat is not renderable so RENDER_ATTACHMENT must not be set in the texture descriptor when using rgb9e5ufloat.

The PR also fixes a wrong constant value for rg11b10ufloat.

Copy link

github-actions bot commented Aug 20, 2025

📦 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.18
158.93
576.19
158.93
+9 B
+4 B
WebGPU Nodes 574.79
158.68
574.8
158.69
+9 B
+4 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 646.8
174.91
646.81
174.91
+9 B
+4 B
WebGPU Nodes 600.98
164.09
600.99
164.09
+9 B
+4 B

@Mugen87 Mugen87 changed the title WebGPUTextureUtils: Fix RGB9E5UFloat usage. WebGPUTextureUtils: Fix rgb9e5ufloat usage and rg11b10ufloat constant value. Aug 20, 2025
@Mugen87 Mugen87 merged commit 955946e into mrdoob:dev Aug 20, 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