TSL: SubgroupFunctionNode
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.
📦 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 |
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.
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.
Closing and looping into #31378. This never had an example anyway so the compute reduction PR is more appropriate for introducing this functionality.