Function nannou_wgpu::util::initialize_adapter_from_env_or_default[][src]

pub async fn initialize_adapter_from_env_or_default(
    instance: &'_ Instance,
    backend_bits: Backends,
    compatible_surface: Option<&'_ Surface>
) -> Option<Adapter>
Expand description

Initialize the adapter obeying the WGPU_ADAPTER_NAME environment variable and if it doesn’t exist fall back on a default adapter.