Draft multi-threaded image rendering in iced_wgpu
This commit is contained in:
parent
92888a3639
commit
cb8d2710da
22 changed files with 886 additions and 305 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue