Repository navigation
feat(geo-layers): support MVTLayer on WebGPU - #10601
Merged
Merged
Conversation
Greptile SummaryThis PR enables the default MVT rendering path on WebGPU while retaining the existing WebGL implementation.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| modules/layers/src/path-layer/path-layer.wgsl.ts | Places geometry clipping after analytic derivative calculations and reserves a separate varying location for TripsLayer injection. |
| modules/layers/src/utils/clip-extension.ts | Introduces the private WGSL module implementing instance and geometry clipping for supported primitive layers. |
| modules/extensions/src/clip/clip-extension.ts | Supplies clipping uniforms on WebGPU while preserving the existing GLSL shader-module path on WebGL. |
| modules/layers/src/path-layer/path-tesselator.ts | Materializes packed binary path geometry when running on WebGPU. |
| modules/layers/src/scatterplot-layer/scatterplot-layer.ts | Adds WebGPU clipping support and groups portable instance attributes into a shared buffer. |
| modules/layers/src/solid-polygon-layer/solid-polygon-layer.wgsl.ts | Applies instance or interpolated geometry clipping to WebGPU polygon top and side pipelines. |
| test/render/test-cases/mvt-layer.spec.ts | Enables the existing MVT render cases on both WebGL and WebGPU. |
Reviews (3): Last reviewed commit: "fix(layers): preserve TripsLayer WGSL in..." | Re-trigger Greptile
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 80cc2f197b
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Pessimistress
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Enable the built-in
MVTLayerrendering path on WebGPU, including the default binary tile format,binary: false, tile clipping, highlighting, and polygon holes.This builds on the investigation in #10564 and #10565 from a fresh branch on current
master, while addressing the PathLayer review feedback by keeping binary geometry decoding insidePathTesselator.Changes
ScatterplotLayer,PathLayer, andSolidPolygonLayer;ClipExtensiononly supplies its uniforms on WebGPU, while the WebGL GLSL path remains unchanged.PathTesselatorfor WebGPU and rename the packed parent attribute so clipping correctly treats paths as geometry rather than anchored instances.platform-overrides/webgpu; the standard 0.99 comparison threshold is unchanged.Validation
npx vitest run --project headless test/modules/extensions/clip.spec.ts test/modules/layers/geojson-layer-webgpu.spec.ts --maxWorkers=1 --fileParallelism=false --testTimeout=60000— 3 passednpx vitest run --project headless test/modules/geo-layers/mvt-layer.spec.ts— 13 passedRENDER_TEST_DEVICE=webgpu npx vitest run --project render test/render/test-cases/mvt-layer.spec.ts— 6 passed, 1 backend group skippedRENDER_TEST_DEVICE=webgl npx vitest run --project render test/render/test-cases/mvt-layer.spec.ts— 6 passed, 1 backend group skippedyarn lint— passedyarn build— passednpx tspc --noEmit --project modules/layers/tsconfig.json— passed after moving the clip module private to@deck.gl/layersyarn test-website— passed with existing source-map and Docusaurus SSG warnings