bevy_render2: Log adapter info on initialization (#2542)

It is useful to see which adapter is being used and which wgpu backend.
This commit is contained in:
Robert Swain 2021-07-29 00:02:10 +00:00
parent 3ec6b3f9a0
commit 6944d38a14

View file

@ -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");