pub fn initialize_adapter_from_env(
instance: &Instance,
compatible_surface: Option<&Surface<'_>>,
) -> Result<Adapter, RequestAdapterError>
Available on crate feature
unstable-wgpu-26
only.Expand description
Initialize the adapter obeying the WGPU_ADAPTER_NAME
environment variable.