Function wgpu::util::parse_backends_from_comma_list
source · pub fn parse_backends_from_comma_list(string: &str) -> Backends
Expand description
Generates a set of backends from a comma separated list of case-insensitive backend names.
Whitespace is stripped, so both ‘gl, dx12’ and ‘gl,dx12’ are valid.
Always returns WEBGPU on wasm over webgpu.
Names:
- vulkan = “vulkan” or “vk”
- dx12 = “dx12” or “d3d12”
- dx11 = “dx11” or “d3d11”
- metal = “metal” or “mtl”
- gles = “opengl” or “gles” or “gl”
- webgpu = “webgpu”