diff options
author | 2020-04-28 03:18:31 +0200 | |
---|---|---|
committer | 2020-04-28 03:52:10 +0200 | |
commit | 59b1e90661ee9e479f404bae71029db824cc7b46 (patch) | |
tree | f98949ea315b4e58922be3f2ed333cadcbcbac01 /wgpu/src/triangle.rs | |
parent | 2381a9310c56f60698653f5fd13f5a0d80fa4f67 (diff) | |
download | iced-59b1e90661ee9e479f404bae71029db824cc7b46.tar.gz iced-59b1e90661ee9e479f404bae71029db824cc7b46.tar.bz2 iced-59b1e90661ee9e479f404bae71029db824cc7b46.zip |
Introduce `Translate` primitive in `iced_wgpu`
Diffstat (limited to 'wgpu/src/triangle.rs')
-rw-r--r-- | wgpu/src/triangle.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index 99365a4b..b58cc03c 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -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 |