update panic handler with system information

This commit is contained in:
Chance 2025-04-03 16:05:52 -04:00 committed by BitSyndicate
parent 841ff739dd
commit 8e36b5d68b
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 443E4198D6BBA6DE
4 changed files with 47 additions and 78 deletions

View file

@ -5,7 +5,6 @@ use std::time::Instant;
use cgmath::{Deg, Matrix4, Point3, Rad, SquareMatrix, Vector3, perspective};
use futures::executor::block_on;
use thiserror::Error;
use tracing::{debug, error, info, trace};
use wgpu::TextureUsages;
use wgpu::{Backends, InstanceDescriptor, util::DeviceExt};
@ -370,13 +369,12 @@ impl<'window> Renderer<'window> {
surface.configure(&device, &surface_config);
let (depth_texture, depth_texture_view) =
create_depth_texture(&device, surface_config.width, surface_config.height);
let (depth_texture, depth_texture_view) =
create_depth_texture(&device, surface_config.width, surface_config.height);
let font_bytes = include_bytes!("DejaVuSans.ttf");
let font = FontRef::try_from_slice(font_bytes).map_err(|e| {
ZenyxError::builder(ZenyxErrorKind::DeviceRequest)
ZenyxError::builder(ZenyxErrorKind::FontLoading)
.with_message("Font loading failed")
.with_source(e)
.build()
})?;