Skip to main content

request_adapter

Function request_adapter 

Source
pub async fn request_adapter() -> WebGpuResult<Adapter>
Expand description

Request a WebGPU adapter from the browser.

On wasm32 this goes through the browser’s navigator.gpu API via the wgpu web-sys backend.