Skip to content

WebGPURenderer: Derive viewport and stencil flags from render context. - #34692

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev2
Sep 28, 2026
Merged

Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev2

Conversation

@Mugen87

@Mugen87 Mugen87 commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

Fixed #34671.

Description

The PR makes sure WebGPURenderer derive viewport and stencil flags from render context. Just using the drawing buffer size is wrong since the reference has to be the attachment and that can be the default framebuffer or custom framebuffer (render target). Using the render context covers both.

@github-actions

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
Core 390.07
102.29
390.07
102.29
+0 B
+0 B
WebGL 372.73
87.14
372.73
87.14
+0 B
+0 B
WebGPU 427.49
115.12
427.38
115.11
-106 B
-11 B
WebGPU Nodes 715.15
196.45
715.04
196.44
-106 B
-11 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 517.46
124.26
517.46
124.26
+0 B
+0 B
WebGPU 768.78
206.02
768.68
206
-106 B
-12 B
WebGPU Nodes 714.63
192.53
714.53
192.52
-106 B
-10 B

@Mugen87 Mugen87 added this to the r187 milestone Sep 28, 2026
@Mugen87
Mugen87 merged commit a29944d into mrdoob:dev Sep 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.

WebGPURenderer: render target viewport/scissor ignored when it equals the canvas drawing buffer size

1 participant