Skip to main content

Crate redjs_webgpu

Crate redjs_webgpu 

Source
Expand description

Native WebGPU over the same wgpu revision as the host renderer.

Opt-in while canvas presentation is being integrated. JSC objects own logical clients, not the physical device: embedders may supply an existing context. WGSL always goes through wgpu validation; no shader passthrough is exposed.

register once, before the contexts that should have WebGPU are installed.

Modules§

backend
Native GPU ownership, shared-device injection and per-client isolation.
canvas
GPUCanvasContext with a native host presenter and bounded readback fallback.

Functions§

register
Makes every redjs context installed after this call carry navigator.gpu.