From 6944d38a142bccb4d11f6610d2433f91829cd2d7 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Thu, 29 Jul 2021 00:02:10 +0000 Subject: [PATCH] bevy_render2: Log adapter info on initialization (#2542) It is useful to see which adapter is being used and which wgpu backend. --- pipelined/bevy_render2/src/renderer/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pipelined/bevy_render2/src/renderer/mod.rs b/pipelined/bevy_render2/src/renderer/mod.rs index fd1562659d..b53a76e92b 100644 --- a/pipelined/bevy_render2/src/renderer/mod.rs +++ b/pipelined/bevy_render2/src/renderer/mod.rs @@ -1,6 +1,7 @@ mod graph_runner; mod render_device; +use bevy_utils::tracing::info; pub use graph_runner::*; pub use render_device::*; @@ -40,6 +41,9 @@ pub async fn initialize_renderer( .await .expect("Unable to find a GPU! Make sure you have installed required drivers!"); + #[cfg(not(target_arch = "wasm32"))] + info!("{:?}", adapter.get_info()); + #[cfg(feature = "trace")] let trace_path = { let path = std::path::Path::new("wgpu_trace");