Requests an adapter (a GPU) and waits for it. Returns null, and logs why, when there is none.
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