Skip to content

Port MaskExtension to WebGPU - #11027

Merged
ibgreen merged 9 commits into
masterfrom
codex/mask-webgpu
Nov 9, 2026
Merged

ibgreen merged 9 commits into
masterfrom
codex/mask-webgpu

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Background

MaskExtension lacks WebGPU support. Add channel-preserving mask clears and map/globe picking parity.

Change List

  • Share GLSL/WGSL mask shaders and plugin
  • Preserve other channels when clearing a mask
  • Correct WebGPU picking scissor and readback coordinates
  • Clip billboard icons at mask edges
  • Apply triangle polygon offsets as WebGPU depth bias
  • Retain master's newer globe-orientation fix
  • Update inverted-globe goldens from WebGL reference output
  • Unit tests and render tests
  • Documentation

Build, lint, extension typecheck and all seven local mask parity cases pass. Final CI is green, including WebGPU/render, coverage and website checks.

@coveralls

coveralls commented Nov 4, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 83.801% (-0.03%) from 83.827% — codex/mask-webgpu into master

@ibgreen
ibgreen force-pushed the codex/mask-webgpu branch 2 times, most recently from 66cd291 to 15b3e74 Compare November 4, 2026 18:04
@ibgreen
ibgreen marked this pull request as ready for review November 4, 2026 18:05
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-04T18:05:41.683916Z
We couldn’t complete this review. Comment @codex review to try again.
15b3e74 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both earlier masking issues are fixed.

Summary

Adds WebGPU support for MaskExtension.

  • MaskExtension now clips WebGPU layers in map and globe views.
  • WebGPU picking now uses the right framebuffer rows.
  • WebGPU layers now apply depth offsets to triangles.

Both earlier findings are fixed: billboard corners now get separate positions, and globe mask coordinates are calculated after interpolation. No new actionable issues were found in the latest changes.

Reviews (9) · Last reviewed commit: "Calculate globe mask coordinates after f..." · Reviewed by Greptile

@ibgreen ibgreen left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the Mask channel clear and the map/globe picking coverage. The fixture verifies visible and hidden picks after clearing one channel and inverting it while preserving the other channels. The render matrix covers both devices. I found no blocker in this pass.

@chrisgervang

chrisgervang commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

What would you like to do with #11019 and #11018?

ibgreen commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

@chrisgervang Let's land #11027 first, then rebase and rework #11018 and #11019 on the resulting master. #11027 carries the scissor/readback portion of #11019 for masking/picking parity; #11018's viewport-origin fix remains separate. Afterward we can remove the duplicated picking implementation from #11019 while preserving its unique regression tests and backport notes. Both PRs can stay open for that cleanup.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f7a3db4. Configure here.

@ibgreen
ibgreen merged commit 374e877 into master Nov 9, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/mask-webgpu branch November 9, 2026 15:37
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.

3 participants