Make arguments of Renderer::new explicit in iced_wgpu
This commit is contained in:
parent
f88488543f
commit
2c6fd9ac14
4 changed files with 17 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue