Skip to content

Conversation

@RenaudRohlinger
Copy link
Collaborator

Related issue: #30529

Description

When using storage buffer in WebGPU a 4-byte alignment is applied, updateRange also needs to take that in consideration.
This PR fixes updateRange on vec3 storage buffers.

This contribution is funded by Utsubo

@RenaudRohlinger RenaudRohlinger added this to the r174 milestone Feb 16, 2025
@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.36
78.33
336.36
78.33
+0 B
+0 B
WebGPU 518.75
143.97
518.85
144
+104 B
+23 B
WebGPU Nodes 518.21
143.86
518.32
143.88
+104 B
+23 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.35
112.17
465.35
112.17
+0 B
+0 B
WebGPU 590.58
159.93
590.68
159.95
+104 B
+25 B
WebGPU Nodes 545.88
149.4
545.99
149.43
+104 B
+25 B

@RenaudRohlinger RenaudRohlinger merged commit 12e4fd8 into mrdoob:dev Feb 16, 2025
12 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.

2 participants