Add a primary backend that can be set

Add a primary backend that can be set
This commit is contained in:
Downtime 2021-05-13 16:46:20 +08:00
parent ca4257ff5c
commit e6db439870

View File

@ -78,6 +78,7 @@ fn backend_from_env() -> Option<wgpu::BackendBit> {
"dx11" => wgpu::BackendBit::DX11,
"gl" => wgpu::BackendBit::GL,
"webgpu" => wgpu::BackendBit::BROWSER_WEBGPU,
"primary" => wgpu::BackendBit::PRIMARY,
other => panic!("Unknown backend: {}", other),
}
})