Skip to content

Conversation

@cmhhelgeson
Copy link
Contributor

@cmhhelgeson cmhhelgeson commented Nov 9, 2025

Related issue: #31990

Description

Adds a GPGPU Prefix Sum module to the addons for the WebGPURenderer and adjusts some of the syntax in the other GPGPU examples.

.In draft till #31990 is complete since it relies heavily on countTrailingZeros and needs to be rebased.

@github-actions
Copy link

github-actions bot commented Nov 9, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 356.28
86.49
356.28
86.49
+0 B
+0 B
WebGPU 616.52
173.1
616.6
173.08
+82 B
-26 B
WebGPU Nodes 615.13
172.85
615.21
172.83
+82 B
-25 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 488.15
121.31
488.15
121.31
+0 B
+0 B
WebGPU 688.76
189.02
688.76
189.02
+0 B
+0 B
WebGPU Nodes 630.48
172.25
630.48
172.25
+0 B
+0 B

work on src

use setup approach and register functions that need to be created

bitcountNode

revert glslNodeBuilder changes

lint-fix

revert unintended changes to glslNodeBuilder and MathNode, change bitCount helper function names

remove extra _include

change mainLayout function to accurately reflect WGSL documentation (component wise bitCounts rather than accumulative bitCounts

fix nodeType

init branch

fix

prefix sum from other branch

eod

changes

validate reduction, fix display/debug issues

fix prefix sum errors

fix

fix spine scan and work on fixing downsweep

add comments

work

work

working prefix sum
@cmhhelgeson cmhhelgeson marked this pull request as ready for review November 19, 2025 19:18
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.

1 participant