Repository navigation
feat(geo-layers): enable TerrainLayer on WebGPU - #10516
Conversation
3dc3752 to
13560f3
Compare
d579b4e to
4f603e1
Compare
13560f3 to
d0bc760
Compare
4f603e1 to
90368e5
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 90368e562c
ℹ️ 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".
| if (!webgpuDevice) { | ||
| skip(); | ||
| return; |
There was a problem hiding this comment.
Run this regression in a WebGPU-enabled test project
Under the checked-in Linux/SwiftShader test configuration, this test belongs to the headless project, whose Playwright launch arguments omit --enable-unsafe-webgpu; only the separate render project enables that flag (vitest.config.ts:26-30,176-207). Consequently, when the headless browser exposes no WebGPU adapter, yarn test-headless and test-ci silently take this new skip path instead of validating TerrainLayer. Enable WebGPU for the project that includes this spec or move the regression into a WebGPU-enabled suite so the advertised support remains gated.
Useful? React with 👍 / 👎.
Goal
Enable
TerrainLayeron WebGPU with the smallest possible review surface.This PR is stacked on #10485.
TerrainLayeralready delegates its rendering toSimpleMeshLayer, so no terrain production code or WebGL behavior changes are needed once the textured, non-instanced SimpleMesh path is available.Changes
TerrainLayer-generated textured mesh sublayerValidation
yarn lint(passes; existing repository warnings only)yarn test-headless test/modules/geo-layers/terrain-layer.spec.tswith Chromium WebGPU enabled (2 tests passed)Stack
SimpleMeshLayerWebGPU port)