Skip to content

StorageBufferNode: Add getMemberType#31139

Merged
sunag merged 1 commit into
mrdoob:devfrom
HongchengZhao:struct-member-type
May 21, 2025
Merged

StorageBufferNode: Add getMemberType#31139
sunag merged 1 commit into
mrdoob:devfrom
HongchengZhao:struct-member-type

Conversation

@HongchengZhao

Copy link
Copy Markdown
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.

@github-actions

Copy link
Copy Markdown

📦 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