Add a primary backend that can be set
Add a primary backend that can be set
This commit is contained in:
parent
ca4257ff5c
commit
e6db439870
@ -78,6 +78,7 @@ fn backend_from_env() -> Option<wgpu::BackendBit> {
|
|||||||
"dx11" => wgpu::BackendBit::DX11,
|
"dx11" => wgpu::BackendBit::DX11,
|
||||||
"gl" => wgpu::BackendBit::GL,
|
"gl" => wgpu::BackendBit::GL,
|
||||||
"webgpu" => wgpu::BackendBit::BROWSER_WEBGPU,
|
"webgpu" => wgpu::BackendBit::BROWSER_WEBGPU,
|
||||||
|
"primary" => wgpu::BackendBit::PRIMARY,
|
||||||
other => panic!("Unknown backend: {}", other),
|
other => panic!("Unknown backend: {}", other),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user