Skip to content

TSL: Fixing invalid GLSL using nested structures - #32724

Merged
sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-struct-type-order
Jan 11, 2026
Merged

sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-struct-type-order

Conversation

@sunag

@sunag sunag commented Jan 11, 2026

Copy link
Copy Markdown
Collaborator

Fixed #32716

Description

Ensure struct type is the last child to generate the dependency code first.

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

Copy link
Copy Markdown

πŸ“¦ Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 355.41
84.51
355.41
84.51
+0 B
+0 B
WebGPU 621.09
172.47
621.22
172.51
+135 B
+47 B
WebGPU Nodes 619.69
172.23
619.83
172.28
+135 B
+49 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 487.36
119.29
487.36
119.29
+0 B
+0 B
WebGPU 691.88
187.8
691.88
187.8
+0 B
+0 B
WebGPU Nodes 641.68
174.96
641.68
174.96
+0 B
+0 B

@sunag
sunag marked this pull request as ready for review January 11, 2026 20:37
@sunag
sunag merged commit ac6cc54 into mrdoob:dev Jan 11, 2026
@sunag
sunag deleted the dev-struct-type-order branch January 11, 2026 20:39
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.

TSL: Nested structs produce invalid GLSL

1 participant