Skip to content

WebGPURenderer: Fix binding update after dispose a StorageTexture#33028

Merged
sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-fix-dispose-storage
Feb 20, 2026
Merged

WebGPURenderer: Fix binding update after dispose a StorageTexture#33028
sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-fix-dispose-storage

Conversation

@sunag

@sunag sunag commented Feb 19, 2026

Copy link
Copy Markdown
Collaborator

Related issue: #32969

Description

Using -1 for binding texture that were not initialized, the Binding comparisons are done through .version, but it fail in the caching process if the version remains the same after dispose.

@github-actions

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 359.15
85.24
359.15
85.24
+0 B
+0 B
WebGPU 623.4
173.43
623.41
173.43
+4 B
+1 B
WebGPU Nodes 621.98
173.18
621.99
173.18
+4 B
+2 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 490.87
119.65
490.87
119.65
+0 B
+0 B
WebGPU 696.99
188.44
696.99
188.44
+4 B
-2 B
WebGPU Nodes 646.19
175.83
646.2
175.83
+4 B
+0 B

@sunag sunag marked this pull request as ready for review February 19, 2026 23:00
@sunag sunag added this to the r184 milestone Feb 19, 2026
@mrdoob

mrdoob commented Feb 20, 2026

Copy link
Copy Markdown
Owner

Should I include this in today's patch release? #33024 (comment)

@sunag sunag merged commit 022c006 into mrdoob:dev Feb 20, 2026
10 checks passed
@sunag sunag deleted the dev-fix-dispose-storage branch February 20, 2026 06:09
@sunag

sunag commented Feb 20, 2026

Copy link
Copy Markdown
Collaborator Author

Should I include this in today's patch release? #33024 (comment)

It would be great, thank you

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.

3 participants