Skip to main content

create_headless_device

Function create_headless_device 

Source
pub fn create_headless_device() -> Result<(Device, Queue, String), String>
Expand description

Create a headless device: adapter picked by BREP_RENDER_ADAPTER (case-insensitive substring of the adapter name, e.g. “llvmpipe”) or wgpu’s high-performance default. Native only — the browser shell gets its device from the canvas context.