Introduce Translate primitive in iced_wgpu
This commit is contained in:
parent
2381a9310c
commit
59b1e90661
10 changed files with 127 additions and 104 deletions
|
|
@ -1,6 +1,6 @@
|
|||
//! Draw meshes of triangles.
|
||||
use crate::{settings, Transformation};
|
||||
use iced_native::{Point, Rectangle};
|
||||
use iced_native::{Rectangle, Vector};
|
||||
use std::mem;
|
||||
use zerocopy::AsBytes;
|
||||
|
||||
|
|
@ -201,7 +201,7 @@ impl Pipeline {
|
|||
target_width: u32,
|
||||
target_height: u32,
|
||||
transformation: Transformation,
|
||||
meshes: &[(Point, &Mesh2D)],
|
||||
meshes: &[(Vector, &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