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