Expand description
Browser runtime — unified WebGPU (async) + WebGL fallback + CPU.
Call init_webgpu once at startup on wasm, then use BrowserSession to
compile and run graphs through the same backend registry as native code.
Re-exports§
pub use device_ext::BROWSER_DEVICE_PRIORITY as browser_device_priority;
Structs§
- Browser
Compiled Graph - A graph compiled for a browser backend.
- Browser
Error - Error from browser compile/run preflight.
- Browser
Session - Session targeting a browser backend (
WebGpupreferred, thenOpenGl, thenCpu).
Functions§
- available_
browser_ devices - Available browser backends in priority order.
- browser_
block_ reason - Diagnostic when no browser backend can run
graph. - init_
webgpu - preferred_
browser_ device - Highest-priority live browser backend.
- supports_
browser_ graph - Is
graphrunnable on any available browser backend?