From 674c2204562729d1f66c2f4810ac5e85a41b162d Mon Sep 17 00:00:00 2001 From: Alexsander Falcucci Date: Sat, 21 Sep 2024 19:02:23 +0200 Subject: [PATCH] feat: consolidate platform-specific backend support - change the target backend to `vulkan` for linux - add support for all backends for windows --- src/winit_renderer.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/winit_renderer.rs b/src/winit_renderer.rs index 6f58c8e..9c9751b 100644 --- a/src/winit_renderer.rs +++ b/src/winit_renderer.rs @@ -155,9 +155,14 @@ impl WinitRenderer { wgpu::Backends::METAL } - #[cfg(not(target_os = "macos"))] + #[cfg(target_os = "linux")] { wgpu::Backends::VULKAN } + + #[cfg(target_os = "windows")] + { + wgpu::Backends::all() + } } }