Skip to content

TSL: Support switching StorageBufferAttribute when using storage()#32847

Merged
sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-binding-storagebuffer
Jan 24, 2026
Merged

TSL: Support switching StorageBufferAttribute when using storage()#32847
sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-binding-storagebuffer

Conversation

@sunag

@sunag sunag commented Jan 24, 2026

Copy link
Copy Markdown
Collaborator

Related issue: #32735

Description

Add support for change the StorageBufferAttribute in storage() as we do with texture(), since both are uniforms, allowing dynamic changes between render or compute calls.

@sunag sunag added this to the r183 milestone Jan 24, 2026
@github-actions

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 357.49
84.84
357.49
84.84
+0 B
+0 B
WebGPU 621.8
172.74
621.89
172.77
+84 B
+34 B
WebGPU Nodes 620.41
172.5
620.49
172.53
+84 B
+34 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 490.27
119.86
490.27
119.86
+0 B
+0 B
WebGPU 692.71
187.98
692.79
188.01
+84 B
+32 B
WebGPU Nodes 642.09
175.08
642.17
175.11
+84 B
+32 B

@sunag sunag marked this pull request as ready for review January 24, 2026 23:16
@sunag sunag merged commit 3fbedbd into mrdoob:dev Jan 24, 2026
10 checks passed
@sunag sunag deleted the dev-binding-storagebuffer branch January 24, 2026 23:18
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