pub fn request_working_adapter_and_device(
instance: &Instance,
compatible_surface: Option<&Surface<'_>>,
label: &str,
) -> Result<(Adapter, Device, Queue), String>Expand description
Acquires the first compatible wgpu::Adapter whose request_device succeeds,
preferring discrete GPUs first and automatically failing over across integrated/software
adapters when the primary GPU driver reports device loss or resource exhaustion.