print adapter info on start

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

View file

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

View file

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