Formatting
This commit is contained in:
parent
6b4896f0cb
commit
b33af565f2
|
|
@ -1,6 +1,6 @@
|
|||
use std::rc::Rc;
|
||||
|
||||
use crate::mvu::{Event, File, MvuApp, Size2i, FrameTimer};
|
||||
use crate::mvu::{Event, File, FrameTimer, MvuApp, Size2i};
|
||||
use {
|
||||
log::info,
|
||||
std::borrow::Cow,
|
||||
|
|
@ -59,14 +59,17 @@ impl MvuApp<Model> for App {
|
|||
})
|
||||
.await
|
||||
.expect("Failed to find an appropriate adapter");
|
||||
info!("Using {} backend with {}", adapter.get_info().backend, adapter.get_info().name);
|
||||
info!(
|
||||
"Using {} backend with {}",
|
||||
adapter.get_info().backend,
|
||||
adapter.get_info().name
|
||||
);
|
||||
|
||||
let (device, queue) = adapter
|
||||
.request_device(&wgpu::DeviceDescriptor {
|
||||
label: None,
|
||||
required_features: wgpu::Features::empty(),
|
||||
required_limits: wgpu::Limits::default()
|
||||
.using_resolution(adapter.limits()),
|
||||
required_limits: wgpu::Limits::default().using_resolution(adapter.limits()),
|
||||
memory_hints: wgpu::MemoryHints::MemoryUsage,
|
||||
trace: Trace::Off,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue