Repository navigation
Port PathStyleExtension dashes and offsets to WebGPU - #11025
Conversation
b54ee11 to
fc26633
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
[Medium impact] The PR appears safe to merge, with both earlier findings fixed and no new actionable issues. SummaryAdds WebGPU dashes and offsets through
Reviews (3) · Last reviewed commit: "test(path-style): type WebGPU regression..." · Reviewed by Greptile |
Background
PathStyleExtension supports dashed strokes and lateral offsets on WebGPU as well as WebGL. Paths, scatterplot outlines, and text-background outlines each use shared plugins with language-specific shader implementations.
Change List
Validation
yarn buildandyarn lintyarn test-websiteTwo WebGPU comparisons use slightly lower image-match thresholds to accommodate differences from the existing WebGL goldens.
Note
Medium Risk
Adds new WGSL shader logic and alters shader injection execution ordering across multiple layer shaders, which could introduce rendering regressions on WebGPU.
Overview
Adds WebGPU support to
PathStyleExtension, enabling dashed strokes, path-wide dash phase, lateral offsets, and SDF outline dashes forPathLayer,ScatterplotLayer, andTextBackgroundLayer.Implements new WGSL shader plugins (
getPathStylePluginandgetSDFDashPlugin) inshaders.wgsl.tsand wires them intoPathStyleExtension.getShaders(). In support of this, new coordinate and color injection hooks (DECKGL_PATH_STYLE_COORDINATESandDECKGL_PATH_STYLE_COLOR) are added topath-layer.wgsl.ts, while picking and color filter execution ordering is updated inscatterplot-layer.wgsl.tsandtext-background-layer.wgsl.ts.Updates documentation to reflect WebGPU compatibility, re-enables dash render tests on WebGPU, and adds dedicated WebGPU test coverage for dash highlights and antialiasing.
Reviewed by Cursor Bugbot for commit 7f82d34. Bugbot is set up for automated code reviews on this repo. Configure here.