Skip to content

Commit

Permalink
add secondary backend fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Kl4rry committed Feb 24, 2024
1 parent 58a2755 commit 3aae64c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ impl<'a> WindowHandler<'a> {

let mut backends = if cfg!(windows) {
wgpu::Backends::DX12
} else {
} else if cfg!(macos) {
wgpu::Backends::PRIMARY
} else {
wgpu::Backends::PRIMARY | wgpu::Backends::SECONDARY
};

if let Ok(gpu_backend) = env::var("SIMP_GPU_BACKEND") {
Expand Down

0 comments on commit 3aae64c

Please sign in to comment.