Implement Primitive::Cached
This commit is contained in:
parent
37f0d97159
commit
b74e7e7353
12 changed files with 151 additions and 105 deletions
|
|
@ -1,7 +1,7 @@
|
|||
//! Draw meshes of triangles.
|
||||
use crate::{settings, Transformation};
|
||||
use iced_native::{Point, Rectangle};
|
||||
use std::{mem, sync::Arc};
|
||||
use std::mem;
|
||||
|
||||
mod msaa;
|
||||
|
||||
|
|
@ -194,7 +194,7 @@ impl Pipeline {
|
|||
target_width: u32,
|
||||
target_height: u32,
|
||||
transformation: Transformation,
|
||||
meshes: &Vec<(Point, Arc<Mesh2D>)>,
|
||||
meshes: &Vec<(Point, &Mesh2D)>,
|
||||
bounds: Rectangle<u32>,
|
||||
) {
|
||||
// This looks a bit crazy, but we are just counting how many vertices
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue