mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-21 22:38:41 -06:00
print adapter info on start
This commit is contained in:
parent
18e35b3ea4
commit
c98f504310
|
@ -1,8 +1,7 @@
|
|||
use bytemuck::{Pod, Zeroable};
|
||||
use kubi_shared::transform::Transform;
|
||||
use shipyard::{AllStoragesView, IntoIter, Unique, UniqueView, View};
|
||||
use wgpu::util::DeviceExt;
|
||||
use crate::camera::{self, Camera};
|
||||
use crate::camera::Camera;
|
||||
use super::Renderer;
|
||||
|
||||
#[derive(Debug, Clone, Copy, Default, Pod, Zeroable)]
|
||||
|
|
|
@ -103,11 +103,15 @@ impl Renderer {
|
|||
},
|
||||
).block_on().unwrap();
|
||||
|
||||
log::info!("Adapter: {:?}", adapter.get_info());
|
||||
log::info!("Features: {:?}", adapter.features());
|
||||
log::info!("Limits: {:?}", adapter.limits());
|
||||
|
||||
let (device, queue) = adapter.request_device(
|
||||
&wgpu::DeviceDescriptor {
|
||||
label: None,
|
||||
required_features: wgpu::Features::empty(),
|
||||
required_limits: wgpu::Limits::default(),
|
||||
required_limits: wgpu::Limits::downlevel_webgl2_defaults().using_resolution(adapter.limits()),
|
||||
},
|
||||
None,
|
||||
).block_on().unwrap();
|
||||
|
|
Loading…
Reference in a new issue