Make arguments of Renderer::new explicit in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2024-04-08 15:35:54 +02:00
parent f88488543f
commit 2c6fd9ac14
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 17 additions and 17 deletions

View file

@ -63,16 +63,7 @@ fn benchmark(
Some(Antialiasing::MSAAx4),
);
let mut renderer = Renderer::new(
iced_wgpu::Settings {
present_mode: wgpu::PresentMode::Immediate,
backends: wgpu::Backends::all(),
default_font: Font::DEFAULT,
default_text_size: Pixels::from(16),
antialiasing: Some(Antialiasing::MSAAx4),
},
&engine,
);
let mut renderer = Renderer::new(&engine, Font::DEFAULT, Pixels::from(16));
let viewport =
graphics::Viewport::with_physical_size(Size::new(3840, 2160), 2.0);