wgpu::util

Function initialize_adapter_from_env

Source
pub fn initialize_adapter_from_env(
    instance: &Instance,
    compatible_surface: Option<&Surface<'_>>,
) -> Option<Adapter>
Available on native only.
Expand description

Initialize the adapter obeying the WGPU_ADAPTER_NAME environment variable.