Skip to content

Documentation / @ripl/webgpu / requestDevice

Function: requestDevice()

requestDevice(): Promise<GPUDevice>

Defined in: webgpu/src/context.ts:351

Requests a WebGPU adapter and device, throwing if unsupported.

Returns

Promise<GPUDevice>