Skip to main content

probe_adapter

Function probe_adapter 

Source
pub fn probe_adapter() -> Option<String>
Expand description

Probe whether any wgpu adapter (real GPU first, then software fallback) can be obtained on this machine.

Renders never run when this returns false; useful for gating tests in headless environments. Returns the adapter backend/name on success.