Skip to main content

choose

Function choose 

Source
pub fn choose(
    app_var: &str,
    app: Option<&str>,
    wgpu: Option<&str>,
) -> BackendChoice
Expand description

The choice from the app’s variable app_var (value app) or else WGPU_BACKEND (wgpu): the first one that parses wins; an unknown value is skipped (with a warning).