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.
Parameters
Section titled “Parameters”requested
Section titled “requested”onError?
Section titled “onError?”(message) => void
Returns
Section titled “Returns”Promise<WebGPUBootResult>