WebGPU module

webgpu_request_device

procedureextensionexperimentalSource

Requests a device from an adapter and waits for it. Returns null on failure. Uncaptured errors are logged unless the descriptor sets its own callback.

Example↗
instance := wgpuCreateInstance(null);
adapter := webgpu_request_adapter(instance);
device := webgpu_request_device(instance, adapter);

This one is only checked to compile, not run.

webgpu_request_device :: (
    instance: WGPUInstance,
    adapter: WGPUAdapter,
    descriptor: *WGPUDeviceDescriptor = null
) -> WGPUDevice

Parameters

instance: WGPUInstance
adapter: WGPUAdapter
descriptor: *WGPUDeviceDescriptor = null

Returns

See also