Skip to content

feat(layers): port TextLayer glyph rendering to WebGPU - #10473

Merged
ibgreen merged 3 commits into
masterfrom
codex/webgpu-text-layer
Aug 2, 2026
Merged

ibgreen merged 3 commits into
masterfrom
codex/webgpu-text-layer

Conversation

@ibgreen-openai

@ibgreen-openai ibgreen-openai commented Jul 23, 2026 •

Copy link
Copy Markdown
Collaborator

Goal

Port the core TextLayer glyph-rendering path to WebGPU as a small, reviewable extraction from #10450.

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

Changes

  • Add the WGSL shader for MultiIconLayer, the glyph-rendering sublayer used by TextLayer.
  • Supply WGSL source unconditionally; the existing WebGL GLSL path ignores it.
  • Reuse the landed IconLayer attribute buffer group for glyph row-index and clip-rectangle attributes.
  • Enable the website example with static hasDeviceTabs = true; shared example-device forwarding comes entirely from master.
  • Disable CollisionFilterExtension only for WebGPU because the extension is not yet ported; WebGL collision filtering remains unchanged.

Website example

Example WebGPU Notes
TextLayer / World Cities by Population Supported Glyph rendering; the unsupported collision extension is skipped on WebGPU only.

TextBackgroundLayer and the clipping example remain outside this focused PR.

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 Jul 23, 2026 •

Copy link
Copy Markdown

Coverage Status

No base build to compare — codex/webgpu-text-layer into master

@ibgreen
ibgreen marked this pull request as ready for review July 23, 2026 19:04
@ibgreen-openai ibgreen-openai mentioned this pull request Jul 23, 2026
42 of 61 tasks
@ibgreen-openai
ibgreen-openai force-pushed the codex/webgpu-text-layer branch from a674ae0 to 5f59a86 Compare July 27, 2026 20:23
@ibgreen
ibgreen force-pushed the codex/webgpu-text-layer branch from 5f59a86 to cdc51bf Compare August 1, 2026 18:03
@ibgreen
ibgreen force-pushed the codex/webgpu-text-layer branch from cdc51bf to 98e5c81 Compare August 1, 2026 18:11
@ibgreen
ibgreen merged commit 3db9694 into master Aug 2, 2026
5 checks passed
@ibgreen
ibgreen deleted the codex/webgpu-text-layer branch August 2, 2026 17:48
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.

4 participants