@fourjs/render-webgpu — the WebGPU backend (§62 backend 1).
The public surface is one class, WebgpuRenderer, which implements
@fourjs/render's Renderer, plus registerWebgpuRenderer for §62's
registry. Everything else exported here is exported because a test, a
diagnostic, or a later packet in this package needs it — the structural
device surface, the pipeline cache and its key function, the bind-group
layout table and the WGSL builders are the seams that let the whole backend
be unit-tested against a fake device with no GPU and no browser (Node has no
navigator.gpu at all; see tests/integration/helpers/recording-gpu.ts).
Applications select a backend at the edge (§62); nothing in @fourjs/scene,
@fourjs/motion, or @fourjs/physics may name anything in this package. Note
that calling registerWebgpuRenderer() moves an application off WebGL 2,
because AUTO_RENDERER_ORDER prefers WebGPU — register.ts has the full
note.
@fourjs/render-webgpu— the WebGPU backend (§62 backend 1).The public surface is one class, WebgpuRenderer, which implements
@fourjs/render'sRenderer, plus registerWebgpuRenderer for §62's registry. Everything else exported here is exported because a test, a diagnostic, or a later packet in this package needs it — the structural device surface, the pipeline cache and its key function, the bind-group layout table and the WGSL builders are the seams that let the whole backend be unit-tested against a fake device with no GPU and no browser (Node has nonavigator.gpuat all; seetests/integration/helpers/recording-gpu.ts).Applications select a backend at the edge (§62); nothing in
@fourjs/scene,@fourjs/motion, or@fourjs/physicsmay name anything in this package. Note that callingregisterWebgpuRenderer()moves an application off WebGL 2, becauseAUTO_RENDERER_ORDERprefers WebGPU —register.tshas the full note.