summaryrefslogtreecommitdiffstats
path: root/wgpu/src/image.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-04 04:01:12 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-04 04:01:12 +0100
commit561c3641c6ac62333550c3017561fa7a18663f00 (patch)
tree3e0a502ab8e37679899002e4664a148fc474a087 /wgpu/src/image.rs
parent4293dcb2540144cc69a9f1370103bb780eca69f3 (diff)
parent6c145bbb239e87569bf4aa797ea7f8d34e25cf62 (diff)
downloadiced-561c3641c6ac62333550c3017561fa7a18663f00.tar.gz
iced-561c3641c6ac62333550c3017561fa7a18663f00.tar.bz2
iced-561c3641c6ac62333550c3017561fa7a18663f00.zip
Merge branch 'master' into feature/image-from-bytes
Diffstat (limited to 'wgpu/src/image.rs')
-rw-r--r--wgpu/src/image.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/wgpu/src/image.rs b/wgpu/src/image.rs
index 4e814468..7e4e2670 100644
--- a/wgpu/src/image.rs
+++ b/wgpu/src/image.rs
@@ -491,6 +491,7 @@ pub struct Image {
pub scale: [f32; 2],
}
+#[repr(C)]
#[derive(Clone, Copy)]
pub struct Vertex {
_position: [f32; 2],
@@ -513,6 +514,7 @@ const QUAD_VERTS: [Vertex; 4] = [
},
];
+#[repr(C)]
#[derive(Clone, Copy)]
struct Instance {
_position: [f32; 2],