three.js icon indicating copy to clipboard operation
three.js copied to clipboard

TSL: SubgroupFunctionNode

Open cmhhelgeson opened this issue 1 year ago • 3 comments

Related issue: #XXXX

Description

Adds basic wave intrinsic/subgroup function support to TSL. Function definitions are derived from this link: https://github.com/gpuweb/gpuweb/blob/main/proposals/subgroups.md.

cmhhelgeson avatar Dec 03 '24 06:12 cmhhelgeson

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 339.11
78.98
339.11
78.98
+0 B
+0 B
WebGPU 484.86
134.6
488.15
135.44
+3.29 kB
+844 B
WebGPU Nodes 484.32
134.5
487.61
135.34
+3.29 kB
+839 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465
112.04
465
112.04
+0 B
+0 B
WebGPU 554.24
150.04
556.83
150.73
+2.59 kB
+684 B
WebGPU Nodes 510.12
139.75
512.71
140.43
+2.59 kB
+676 B

github-actions[bot] avatar Dec 03 '24 06:12 github-actions[bot]

It would be important if we had an example using this feature, just to be sure that this feature will be working release after release.

sunag avatar Dec 12 '24 16:12 sunag

It would be important if we had an example using this feature, just to be sure that this feature will be working release after release.

Working on it 👍. Been busy with work.

cmhhelgeson avatar Dec 13 '24 04:12 cmhhelgeson

Closing and looping into #31378. This never had an example anyway so the compute reduction PR is more appropriate for introducing this functionality.

cmhhelgeson avatar Jul 30 '25 04:07 cmhhelgeson