Skip to content

Port PathStyleExtension dashes and offsets to WebGPU - #11025

Merged
ibgreen merged 6 commits into
masterfrom
codex/path-style-webgpu
Nov 4, 2026
Merged

ibgreen merged 6 commits into
masterfrom
codex/path-style-webgpu

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Port path dash units, path-wide phase, lateral offsets, and dash coverage to WebGPU
  • Support dashed scatterplot and text-background outlines and preserve picking and dash-gap behavior
  • Resolve WGSL variable collisions and aliased pointer arguments, and compose with shared clipping hooks
  • Preserve highlighting in filled dash gaps and antialiasing for solid rounded paths
  • Enable existing dash render tests on WebGPU, including scatterplot and text backgrounds

Validation

  • yarn build and yarn lint
  • Focused PathStyle, Clip, Brushing, and path antialiasing headless tests
  • Path dash render tests: WebGL 45 passed, 1 skipped; WebGPU 44 passed, 2 skipped
  • Scatterplot and text-background dash renders: 2 passed on each backend
  • WebGPU pixel regressions for highlighting and solid-path antialiasing: 3 passed and fail against the prior shaders
  • Repository-wide TypeScript check: new regression file has no errors; unrelated existing example and test errors remain
  • yarn test-website

Two 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 for PathLayer, ScatterplotLayer, and TextBackgroundLayer.

Implements new WGSL shader plugins (getPathStylePlugin and getSDFDashPlugin) in shaders.wgsl.ts and wires them into PathStyleExtension.getShaders(). In support of this, new coordinate and color injection hooks (DECKGL_PATH_STYLE_COORDINATES and DECKGL_PATH_STYLE_COLOR) are added to path-layer.wgsl.ts, while picking and color filter execution ordering is updated in scatterplot-layer.wgsl.ts and text-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.

@coveralls

coveralls commented Nov 4, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 84.754% (+0.01%) from 84.744% — codex/path-style-webgpu into master

@ibgreen
ibgreen force-pushed the codex/path-style-webgpu branch from b54ee11 to fc26633 Compare November 4, 2026 14:40
@ibgreen
ibgreen marked this pull request as ready for review November 4, 2026 14:57
@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-04T14:57:27.189917Z
We couldn’t complete this review. Comment @codex review to try again.
e8a941a 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, with both earlier findings fixed and no new actionable issues.

Summary

Adds WebGPU dashes and offsets through PathStyleExtension, with matching render coverage.

  • PathLayer dashes and offsets now render on WebGPU.
  • Scatterplot and text outlines now show dashes on WebGPU.

Reviews (3) · Last reviewed commit: "test(path-style): type WebGPU regression..." · Reviewed by Greptile

@ibgreen
ibgreen merged commit b09e2dc into master Nov 4, 2026
7 checks passed
@ibgreen
ibgreen deleted the codex/path-style-webgpu branch November 4, 2026 15:24
@ibgreen ibgreen mentioned this pull request Nov 19, 2026
42 of 61 tasks
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