Skip to content

feat(geo-layers): enable TerrainLayer on WebGPU - #10516

Merged
ibgreen merged 1 commit into
codex/webgpu-simple-mesh-layerfrom
codex/webgpu-terrain-layer
Aug 2, 2026
Merged

ibgreen merged 1 commit into
codex/webgpu-simple-mesh-layerfrom
codex/webgpu-terrain-layer

Conversation

@ibgreen-openai

Copy link
Copy Markdown
Collaborator

Goal

Enable TerrainLayer on WebGPU with the smallest possible review surface.

This PR is stacked on #10485. TerrainLayer already delegates its rendering to SimpleMeshLayer, so no terrain production code or WebGL behavior changes are needed once the textured, non-instanced SimpleMesh path is available.

Changes

  • expose the WebGPU device tab on the TerrainLayer website example
  • mark TerrainLayer supported in the WebGPU support table
  • add a real WebGPU regression that initializes the actual TerrainLayer-generated textured mesh sublayer

Validation

  • yarn lint (passes; existing repository warnings only)
  • yarn test-headless test/modules/geo-layers/terrain-layer.spec.ts with Chromium WebGPU enabled (2 tests passed)
  • commit hooks: 21 node tests passed

Stack

@ibgreen-openai ibgreen-openai mentioned this pull request Jul 31, 2026
42 of 61 tasks
@coveralls

coveralls commented Jul 31, 2026 •

Copy link
Copy Markdown

Coverage Status

Coverage is 83.082% — codex/webgpu-terrain-layer into codex/webgpu-simple-mesh-layer. No base build found for codex/webgpu-simple-mesh-layer.

@ibgreen
ibgreen force-pushed the codex/webgpu-simple-mesh-layer branch from 3dc3752 to 13560f3 Compare August 1, 2026 18:06
@ibgreen
ibgreen force-pushed the codex/webgpu-terrain-layer branch from d579b4e to 4f603e1 Compare August 1, 2026 18:07
@ibgreen
ibgreen force-pushed the codex/webgpu-simple-mesh-layer branch from 13560f3 to d0bc760 Compare August 1, 2026 18:11
@ibgreen
ibgreen force-pushed the codex/webgpu-terrain-layer branch from 4f603e1 to 90368e5 Compare August 1, 2026 18:12
@ibgreen
ibgreen marked this pull request as ready for review August 2, 2026 17:48
@ibgreen
ibgreen merged commit e74579c into codex/webgpu-simple-mesh-layer Aug 2, 2026
5 checks passed
@ibgreen
ibgreen deleted the codex/webgpu-terrain-layer branch August 2, 2026 17:48

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +40 to +42
if (!webgpuDevice) {
skip();
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@chrisgervang chrisgervang added this to the v9.4 milestone Aug 11, 2026
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