print adapter info on start

This commit is contained in:
griffi-gh 2024-05-07 20:50:59 +02:00
parent 18e35b3ea4
commit c98f504310
2 changed files with 6 additions and 3 deletions

View file

@ -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)]

View file

@ -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();