Skip to content

feat(proposals): share PathLayer strokes with GPUPathLayer - #11048

Merged
ibgreen merged 2 commits into
masterfrom
codex/gpu-path-stroke-parity
Nov 5, 2026
Merged

ibgreen merged 2 commits into
masterfrom
codex/gpu-path-stroke-parity

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Background

GPUPathLayer uses a separate stroke shader, so its joins and caps differ from PathLayer and it lacks analytic antialiasing and path-plane extrusion.

Change List

  • Share PathLayer’s WGSL stroke shader and uniforms
  • Adapt GPU storage paths into the shared vertex inputs
  • Expose rounded joins, caps, antialiasing, and billboard controls
  • Compare WebGPU render coverage and rounded cap picking
  • Document supported stroke options

Verified with lint and focused WebGPU, PathLayer, and TripsLayer browser tests.


Note

Low Risk
Refactors internal WGSL shader generation and updates the experimental GPUPathLayer to achieve feature parity with PathLayer without affecting production GLSL paths.

Overview
Refactors @deck.gl/core's WGSL path stroke shader into a configurable generator function, makePathShaderWGSL, and re-exports shared path shader plugins and uniforms.

Updates GPUPathLayer in @deck.gl/proposals to construct its stroke pipeline using the shared core shader generator rather than a standalone implementation. This brings parity with standard PathLayer by adding support for rounded joins (jointRounded), rounded caps (capRounded), analytic antialiasing (antialiasing), and planar extrusion (billboard: false).

Reviewed by Cursor Bugbot for commit 5aef165. Bugbot is set up for automated code reviews on this repo. Configure here.

@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-05T12:54:08.140780Z
We couldn’t complete this review. Comment @codex review to try again.
deacd9d PR opened
ℹ️ 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 5, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the follow-up addresses the earlier test concern.

Summary

The PR shares PathLayer stroke shaders with GPUPathLayer and adds rounded joins, caps, antialiasing, and path-plane strokes.

  • PathLayer’s stroke shader now lives in core for reuse.
  • GPUPathLayer now offers PathLayer’s rounded and smoothed strokes.

Reviews (2) · Last reviewed commit: "Compare stroke modes under a tilted came..." · Reviewed by Greptile

@coveralls

coveralls commented Nov 5, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 84.868% (+0.003%) from 84.865% — codex/gpu-path-stroke-parity into master

@ibgreen
ibgreen merged commit ce79233 into master Nov 5, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/gpu-path-stroke-parity branch November 5, 2026 14:14
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