WebGPU module

webgpu_request_adapter

procedureextensionexperimentalSource

Requests an adapter (a GPU) and waits for it. Returns null, and logs why, when there is none.

Example↗
instance := wgpuCreateInstance(null);
adapter := webgpu_request_adapter(instance);
if !adapter return;

This one is only checked to compile, not run.

webgpu_request_adapter :: (
    instance: WGPUInstance,
    options: *WGPURequestAdapterOptions = null
) -> WGPUAdapter

Parameters

instance: WGPUInstance
options: *WGPURequestAdapterOptions = null

Returns

See also