Skip to content

WebGPU Backend of the Graphics Layer

The WebGPU backend of the graphics layer runs in the browser, so the WebAssembly views draw scenes through the same layer as the native renderers.

Field Value
ID REN-13
Status Shipped
Scope Core
Pillar Rendering and 3-D
Sprint None
Depends On WebAssembly Views (EMB-04)
WGSL Shaders Through Naga (REN-10)
Unblocks One WebGPU Path in the Browser (EMB-16)
Colormap by Keys (REN-14)
Dawn Fallback (REN-25)
Docs Rendering, WebGPU Backend
Branches None
Design None

Coverage Ledger

  • Branch sprint4-build, 165 commits, none outside sprint4-integ3. Head of pull request 1 (546bacaa): sprint 4 through demo 0 with every review fix.
  • Branch sprint4-fixgfx, 146 commits, none outside sprint4-integ3. Review fixes for the graphics layer and browser scene check.
  • Branch sprint4-integ3, 209 commits not on main, the superset of the finished build branches; the six branches draws, rec, tex, time, ts9, points hold 30 commits outside it. Third integration branch: every finished build branch (protocol 3.2 series, step 5, 7, 9, scale bar, up-axis, rest of scene calls, first draws commit).
  • Branch sprint4-pr1-main2, 165 commits, none outside sprint4-integ3. Pull request 1 candidate, 546bacaa with main merged in.
  • Branch sprint4-verify, 70 commits, none outside sprint4-integ3. Verification fixes of the browser views.
  • Branch sprint4-webgpu, 25 commits, none outside sprint4-integ3. The WebGPU backend of the graphics layer.
  • Branch sprint4-integ3, 82cc4160, 12910c3f, b004c31b, d7a0c19c, a6fe68f2, b56fa3d3, 9b4e0b50. The WebGPU backend of the graphics layer on webgpu.h, with the browser views drawing their resources through the layer, a validation error scope per submit and a self-test in the page.
  • Branch sprint4-integ3, ef189663, ee2bc751, cb9d8d0e, 132b6d85, 7d1e899e, 03bbb7a7. Scene drawing in the WebAssembly views: the module compiles the scene view, the TypeScript client gains kind scene and the scenes capability.
  • Branch sprint4-integ3, 0e8f6bfb, a70a8911, 25cab979. Browser views docs and module sizes.
  • design/renderer-core.md on the branch sprint4, under The steps. Step 4, WebGPU backend of the layer in the browser; 5 days. The minimum cut of steps 0 to 4 is 22 days.
  • design/renderer-core.md on the branch sprint4, under Decisions. Decisions on a thin layer with three backends, the Vulkan backend with Windows parity, the accepted Windows gap and Dawn as the WebGPU implementation.
  • design/roadmap.md, under Renderers. The WebGPU backend is built for the browser; its native role through Dawn is not part of the current work.
  • design/roadmap.md, under Renderers. Caliper then maintains three renderers: Metal, Vulkan and WebGPU.
  • design/roadmap.md on the branch sprint4, under Renderers. The rewritten Renderers section: Metal and Vulkan backends of a thin graphics layer, GLEW retired now, one WebGPU backend with the Dawn fallback landing with Windows parity, shaders written once in WGSL and translated by Naga, a scene service for applets, and one version of each graphics service.
  • design/roadmap.md on the branch sprint4, under Scenes and recordings. The browser part: scenes on the WebGPU backend of the renderer core, and the demos part: the loss landscape and the training run, with three other demos moved to sprint 5.
  • design/sprint-4.md on the branch sprint4, under 0. The renderer core's minimum cut. Increment 0 as a whole: a quad and a one-entity scene drawn through the graphics layer on Metal and read back byte for byte, scene programs compiled on Metal and in a browser, the sprint 2 heatmap and points drawn unchanged in a browser through the layer (22 days).
  • design/sprint-4.md on the branch sprint4, under 0. The renderer core's minimum cut. Step 4, the layer's WebGPU backend in the browser (5 days).
  • design/sprint-4.md on the branch sprint4, under 1. A loss landscape in a notebook. Points, segment and mesh draws on the WebGPU backend (2 of 4 days).
  • design/sprint-4.md on the branch sprint4, under 1. A loss landscape in a notebook. The index clamp pass (0.5 of 2 days).
  • design/sprint-4.md on the branch sprint4, under 1. A loss landscape in a notebook. Parity rows for the three draws in headless Chromium on a default and a compatibility device (2 of 4 days).
  • design/web-geometry.md on the branch sprint4, under The backend in the renderer core. The WebGPU backend takes draw records; eight draws (points, depth points, segments, arrows, box edges, box faces, mesh, image), each with a pick variant.
  • design/web-geometry.md on the branch sprint4, under Work items. Scene draws on the WebGPU backend: vertex layouts, pipeline descriptors with pick variants, uniform arena and buffer pool; 4 builder days.
  • Orchestrators' notes, _notes/HANDOFF-sprint4.md. Pull request 1 content is finished and held on sprint4-pr1-main2 at 44840c5b: graphics layer, shader generation, scene core, scene view, WebGPU backend, colormap by keys, protocol 3.2 subset, caliper.scene and demo 0.
  • Orchestrators' notes, s4-webgpu/STATUS.md. The layer's WebGPU backend runs in the browser and the browser renderer draws through the layer; its own implementations and WGSL are deleted.
  • Orchestrators' notes, s4-webgpu/STATUS.md. Limits has no compute limits (256 invocations on WebGPU, 128 in compatibility mode), so the core cannot validate workgroup sizes; the backend refuses an oversize workgroup and a blended write of the ID target on a compatibility device.

Roadmap Graph Feature in Graph