Skip to content

Commit 6944d38

Browse files
committed
bevy_render2: Log adapter info on initialization (#2542)
It is useful to see which adapter is being used and which wgpu backend.
1 parent 3ec6b3f commit 6944d38

File tree

1 file changed

+4
-0
lines changed
  • pipelined/bevy_render2/src/renderer

1 file changed

+4
-0
lines changed

pipelined/bevy_render2/src/renderer/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
mod graph_runner;
22
mod render_device;
33

4+
use bevy_utils::tracing::info;
45
pub use graph_runner::*;
56
pub use render_device::*;
67

@@ -40,6 +41,9 @@ pub async fn initialize_renderer(
4041
.await
4142
.expect("Unable to find a GPU! Make sure you have installed required drivers!");
4243

44+
#[cfg(not(target_arch = "wasm32"))]
45+
info!("{:?}", adapter.get_info());
46+
4347
#[cfg(feature = "trace")]
4448
let trace_path = {
4549
let path = std::path::Path::new("wgpu_trace");

0 commit comments

Comments
 (0)