Skip to content

WebGPURenderer: Relates MRT for RenderContext in obtaining a unique context.#32264

Merged
sunag merged 2 commits into
mrdoob:devfrom
sunag:dev-rendercontext-mrt
Nov 13, 2025
Merged

WebGPURenderer: Relates MRT for RenderContext in obtaining a unique context.#32264
sunag merged 2 commits into
mrdoob:devfrom
sunag:dev-rendercontext-mrt

Conversation

@sunag

@sunag sunag commented Nov 13, 2025

Copy link
Copy Markdown
Collaborator

Fixes #32253

Description

It relates MRTNode as a key to create or obtain a RenderContext, and relates RenderContext to RenderObject to generate the cache key.

@sunag sunag changed the title WebGPURenderer: Add MRT for RenderContext WebGPURenderer: Relates MRT for RenderContext in obtaining a unique context. Nov 13, 2025
@sunag sunag added this to the r182 milestone Nov 13, 2025
@github-actions

github-actions Bot commented Nov 13, 2025

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 356.24
86.48
356.24
86.48
+0 B
+0 B
WebGPU 615.06
172.59
615.15
172.62
+90 B
+39 B
WebGPU Nodes 613.67
172.33
613.76
172.37
+90 B
+40 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 488.04
121.25
488.04
121.25
+0 B
+0 B
WebGPU 684.53
187.86
684.62
187.89
+90 B
+29 B
WebGPU Nodes 626.25
171.07
626.34
171.11
+90 B
+35 B

Comment thread src/renderers/common/RenderContexts.js
@sunag sunag marked this pull request as ready for review November 13, 2025 18:07
@sunag sunag merged commit f367f20 into mrdoob:dev Nov 13, 2025
10 checks passed
@sunag sunag deleted the dev-rendercontext-mrt branch November 13, 2025 18:13
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.

WebGPURenderer - Can't swap beteween results from 2 different MRT passes

2 participants