API

Interface DeviceContext

WebGPU device acquired ahead of an engine. Native WebGPU handles remain internal. A context backs at most one engine, which takes ownership and destroys it on disposal.

interface DeviceContext {
    "[deviceContextBrand]": true;
}
Index
"[deviceContextBrand]": true

Opaque nominal brand; contexts must be created by createDevice.