mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 06:00:20 +00:00
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:
parent
3ec6b3f9a0
commit
6944d38a14
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue