add vk as key for vulkan

This commit is contained in:
Isse 2024-01-25 00:33:11 +01:00 committed by Marcel Märtens
parent 856c64c9ee
commit ba2e7f6b1d

View File

@ -208,7 +208,7 @@ impl Renderer {
let backends = std::env::var("WGPU_BACKEND")
.ok()
.and_then(|backend| match backend.to_lowercase().as_str() {
"vulkan" => Some(wgpu::Backends::VULKAN),
"vulkan" | "vk" => Some(wgpu::Backends::VULKAN),
"metal" => Some(wgpu::Backends::METAL),
"dx12" => Some(wgpu::Backends::DX12),
"primary" => Some(wgpu::Backends::PRIMARY),