Skip to content

StorageBufferNode: Add getMemberType #31139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025

Conversation

HongchengZhao
Copy link
Contributor

Fixes: #31100

Description

Preiviously, trying to get the member type of a sturct StorageBufferNode will fallback to the dedault void.

This PR adds getMemberType method to StorageBufferNode to correctly retrieve member type.

Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 337.26
78.64
337.26
78.64
+0 B
+0 B
WebGPU 550.2
152.54
550.3
152.56
+99 B
+14 B
WebGPU Nodes 549.55
152.38
549.65
152.4
+99 B
+14 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 468.12
113.14
468.12
113.14
+0 B
+0 B
WebGPU 625.57
169.32
625.57
169.32
+0 B
+0 B
WebGPU Nodes 580.42
158.63
580.42
158.63
+0 B
+0 B

@sunag sunag added this to the r177 milestone May 21, 2025
@sunag sunag merged commit 6c8e828 into mrdoob:dev May 21, 2025
12 checks passed
@HongchengZhao HongchengZhao deleted the struct-member-type branch May 21, 2025 07:53
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
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.

Return values of atomic* functions are not properly handled when pointerNode is a struct storage buffer
2 participants