Skip to content

Commit

Permalink
Fixed mod.rs in rendering to support Radeon Cards (#10132)
Browse files Browse the repository at this point in the history
# Objective

- Added support for newer AMD Radeon cards in the mod.rs file located at
``crates/bevy_render/src/view/window/mod.rs``

## Solution

- All I needed to add was ``name.starts_with("Radeon") ||`` to the
existing code on line 347 of
``crates/bevy_render/src/view/window/mod.rs``

---

## Changelog

- Changed ``crates/bevy_render/src/view/window/mod.rs``
  • Loading branch information
Quicksticks-oss authored Oct 16, 2023
1 parent 3d79dc4 commit 06d148b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/bevy_render/src/view/window/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ pub fn prepare_windows(
.enumerate_adapters(wgpu::Backends::VULKAN)
.any(|adapter| {
let name = adapter.get_info().name;
name.starts_with("AMD") || name.starts_with("Intel")
name.starts_with("Radeon")
|| name.starts_with("AMD")
|| name.starts_with("Intel")
})
};

Expand Down

0 comments on commit 06d148b

Please sign in to comment.