Skip to content

feat(layers) Port PathLayer to WebGPU - #10113

Merged
ibgreen merged 6 commits into
masterfrom
ib/path-layer-webgpu
Jul 27, 2026
Merged

ibgreen merged 6 commits into
masterfrom
ib/path-layer-webgpu

Conversation

@ibgreen

@ibgreen ibgreen commented Mar 18, 2026 •

Copy link
Copy Markdown
Collaborator

Goal

Port PathLayer to WebGPU without changing the existing WebGL rendering path or reintroducing application/device plumbing.

This branch includes the landed AttributeManager buffer groups, unconditional WGSL shader/module setup (#10479), and shared website device plumbing (#10480).

Changes

  • Add the WGSL PathLayer shader and portable @binding(auto) path uniforms.
  • Supply WGSL source and the color shader module unconditionally; WebGL continues to use its existing GLSL shaders.
  • Use the landed AttributeManager buffer-group support for packed WebGPU neighboring path positions.
  • Preserve WebGL's existing Uint8ClampedArray segment types, vertex-offset attributes, and transition behavior.
  • Keep backend checks only for actual WebGPU attribute-layout and transition differences.
  • Enable the existing GeoJSON paths website example with static hasDeviceTabs = true; no website app or shared core changes are included.

Website example

Example WebGPU Notes
GeoJSON paths / Highway Safety Supported Path geometry, colors, opacity, and picking.

Screenshot

PathLayer rendered with WebGPU

Validation

  • yarn build: passed for the combined WebGPU integration branch.
  • yarn lint and the node test suite: passed; only existing repository warnings remain.
  • yarn test-website: the full production website build passed; only existing dependency source-map warnings remain.
  • Chromium render coverage: the PathLayer, PolygonLayer, TextLayer, and ScenegraphLayer suites all passed.
  • The four GeoJSON text screenshot mismatches reproduce unchanged on the exact current master, including identical match percentages; they are not regressions introduced by this branch.

@coveralls

coveralls commented Mar 22, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 83.29% (-0.1%) from 83.386% — ib/path-layer-webgpu into master

@ibgreen
ibgreen marked this pull request as ready for review March 29, 2026 23:03
@chrisgervang chrisgervang added this to the v9.3 milestone Apr 1, 2026
@chrisgervang chrisgervang modified the milestones: v9.3, v10 Jun 29, 2026
@ibgreen-openai ibgreen-openai mentioned this pull request Jul 23, 2026
42 of 61 tasks
@ibgreen-openai

Copy link
Copy Markdown
Collaborator

Review follow-up: all reviewer threads have answers and are resolved. GitHub CI is green and the PR is approved.

@ibgreen
ibgreen merged commit dd9b404 into master Jul 27, 2026
5 checks passed
@ibgreen
ibgreen deleted the ib/path-layer-webgpu branch July 27, 2026 01:31
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.

5 participants