From df750c8901c447a27b57e26325ed602a0ba1cfd9 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 7 May 2024 20:50:59 +0200 Subject: [PATCH] print adapter info on start --- kubi/src/rendering/camera_uniform.rs | 3 +-- kubi/src/rendering/renderer.rs | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/kubi/src/rendering/camera_uniform.rs b/kubi/src/rendering/camera_uniform.rs index 03bb3d7..1d18bcd 100644 --- a/kubi/src/rendering/camera_uniform.rs +++ b/kubi/src/rendering/camera_uniform.rs @@ -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)] diff --git a/kubi/src/rendering/renderer.rs b/kubi/src/rendering/renderer.rs index c491e0f..2da1be3 100644 --- a/kubi/src/rendering/renderer.rs +++ b/kubi/src/rendering/renderer.rs @@ -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();