Skip to content

WebGPURenderer: Fix integer array texture bindings - #34422

Open
WilliamLiu-1997 wants to merge 1 commit into
mrdoob:devfrom
WilliamLiu-1997:fix-webgpu-integer-array-texture
Open

WebGPURenderer: Fix integer array texture bindings#34422
WilliamLiu-1997 wants to merge 1 commit into
mrdoob:devfrom
WilliamLiu-1997:fix-webgpu-integer-array-texture

Conversation

@WilliamLiu-1997

Copy link
Copy Markdown

Related issue: #34420

Description

Uses the existing texture component type detection when declaring sampled array texture bindings in WGSL.

Unsigned and signed integer array textures now generate texture_2d_array<u32> and texture_2d_array<i32> respectively instead of always generating texture_2d_array<f32>.

Validation:

  • npm run lint
  • npm run build

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
Core 389.13
102.11
389.13
102.11
+0 B
+0 B
WebGL 372.46
87.93
372.46
87.93
+0 B
+0 B
WebGPU 704.94
194.28
704.99
194.28
+48 B
+2 B
WebGPU Nodes 702.93
193.96
702.98
193.96
+48 B
+2 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 515.87
124.88
515.87
124.88
+0 B
+0 B
WebGPU 762.71
204.8
762.76
204.81
+48 B
+3 B
WebGPU Nodes 711.37
192.07
711.42
192.07
+48 B
+3 B

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