Skip to content

acquireWebGPUDevice

acquireWebGPUDevice(requested, onError?): Promise<WebGPUBootResult>

Defined in: render/webgpuBoot.ts:44

A device for requested, or null to fall back to WebGL2 — a project that asks for WebGPU still runs on a browser without it, which is the only behaviour a shipped game can have. onError takes Dawn’s uncaptured validation messages, which are dropped in silence without a listener.

RenderBackendRequest

(message) => void

Promise<WebGPUBootResult>