Skip to content

Commit

Permalink
Fixed mod.rs in rendering to support Radeon Cards (bevyengine#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 and Ray Redondo committed Jan 9, 2024
1 parent 7f8e148 commit 71b0188
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 71b0188

Please sign in to comment.