Draft multi-threaded image rendering in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2025-10-24 17:23:40 +02:00
parent 92888a3639
commit cb8d2710da
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
22 changed files with 886 additions and 305 deletions

View file

@ -72,7 +72,7 @@ fn benchmark<'a>(
view: impl Fn(usize) -> Element<'a, (), Theme, Renderer>,
) {
use iced_wgpu::graphics;
use iced_wgpu::graphics::Antialiasing;
use iced_wgpu::graphics::{Antialiasing, Shell};
use iced_wgpu::wgpu;
use iced_winit::core;
use iced_winit::runtime;
@ -85,6 +85,7 @@ fn benchmark<'a>(
queue.clone(),
format,
Some(Antialiasing::MSAAx4),
Shell::headless(),
);
let mut renderer = Renderer::new(engine, Font::DEFAULT, Pixels::from(16));