summaryrefslogtreecommitdiffstats
path: root/benches
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-08 15:35:54 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-08 15:35:54 +0200
commit2c6fd9ac14c5d270e05b97b7a7fab811d25834c4 (patch)
treed4484aaf89ea81221e3b077bb3ac213bba015411 /benches
parentf88488543f0b2d0ca95753d1e6527ba06981290a (diff)
downloadiced-2c6fd9ac14c5d270e05b97b7a7fab811d25834c4.tar.gz
iced-2c6fd9ac14c5d270e05b97b7a7fab811d25834c4.tar.bz2
iced-2c6fd9ac14c5d270e05b97b7a7fab811d25834c4.zip
Make arguments of `Renderer::new` explicit in `iced_wgpu`
Diffstat (limited to 'benches')
-rw-r--r--benches/wgpu.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/benches/wgpu.rs b/benches/wgpu.rs
index 780c6bc2..61b4eb6c 100644
--- a/benches/wgpu.rs
+++ b/benches/wgpu.rs
@@ -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);