Skip to content

Commit

Permalink
feat: consolidate platform-specific backend support
Browse files Browse the repository at this point in the history
- change the target backend to `vulkan` for linux
- add support for all backends for windows
  • Loading branch information
falcucci committed Sep 21, 2024
1 parent 4e85728 commit 674c220
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/winit_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}

0 comments on commit 674c220

Please sign in to comment.