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,6 +1,7 @@ | |||||||
| mod graph_runner; | mod graph_runner; | ||||||
| mod render_device; | mod render_device; | ||||||
| 
 | 
 | ||||||
|  | use bevy_utils::tracing::info; | ||||||
| pub use graph_runner::*; | pub use graph_runner::*; | ||||||
| pub use render_device::*; | pub use render_device::*; | ||||||
| 
 | 
 | ||||||
| @ -40,6 +41,9 @@ pub async fn initialize_renderer( | |||||||
|         .await |         .await | ||||||
|         .expect("Unable to find a GPU! Make sure you have installed required drivers!"); |         .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")] |     #[cfg(feature = "trace")] | ||||||
|     let trace_path = { |     let trace_path = { | ||||||
|         let path = std::path::Path::new("wgpu_trace"); |         let path = std::path::Path::new("wgpu_trace"); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Robert Swain
						Robert Swain