Skip to content

TSL: Make global context available within compute nodes - #33231

Merged
sunag merged 4 commits into
mrdoob:devfrom
shotamatsuda:feat/compute-renderer-context
Mar 28, 2026
Merged

sunag merged 4 commits into
mrdoob:devfrom
shotamatsuda:feat/compute-renderer-context

Conversation

@shotamatsuda

@shotamatsuda shotamatsuda commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR applies the global context in the compute build path.

Although compute shaders can't have the material's cascading behavior, it makes more sense to have the renderer's global context available within compute nodes as well.

@github-actions

github-actions Bot commented Mar 24, 2026 •

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 360.01
85.46
360.01
85.46
+0 B
+0 B
WebGPU 633.56
175.64
633.38
175.63
-174 B
-9 B
WebGPU Nodes 631.68
175.35
631.5
175.34
-174 B
-9 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 492.21
120.03
492.21
120.03
+0 B
+0 B
WebGPU 705.59
190.53
705.41
190.51
-175 B
-16 B
WebGPU Nodes 654.8
177.78
654.63
177.77
-175 B
-8 B

@shotamatsuda
shotamatsuda marked this pull request as ready for review March 24, 2026 10:02
@sunag sunag added this to the r184 milestone Mar 25, 2026
@sunag
sunag merged commit 02de89f into mrdoob:dev Mar 28, 2026
10 checks passed
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.

2 participants