How to get AdapterInfo?
#18417
Replies: 3 comments 1 reply
-
https://docs.rs/bevy/latest/bevy/render/render_resource/struct.WgpuAdapterInfo.html This looks like the right place, but it is sadly undocumented. Poke around in the code and see how it's used? And then maybe submit a docs PR 🥺 |
Beta Was this translation helpful? Give feedback.
1 reply
-
pub fn setup_debug_hud(
mut commands: Commands,
system: Res<SystemInfo>,
adapter: Res<RenderAdapterInfo>,
query_monitor: Query<(Entity, &Monitor, Has<PrimaryMonitor>)>,
query_window: Query<&Window>,
) {
<...>
let adapter_info = format!("{}", adapter.name); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
shwwwa
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to write systems for debugging
You can pretty much get everything with bevy_diagnostic, but not adapterinfo
Beta Was this translation helpful? Give feedback.
All reactions