Add repr(C)
to GPU types
This commit is contained in:
parent
805c5ad0cd
commit
67570a0a1d
@ -427,6 +427,7 @@ pub struct Image {
|
||||
pub scale: [f32; 2],
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct Vertex {
|
||||
_position: [f32; 2],
|
||||
@ -449,6 +450,7 @@ const QUAD_VERTS: [Vertex; 4] = [
|
||||
},
|
||||
];
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
struct Instance {
|
||||
_position: [f32; 2],
|
||||
|
@ -248,6 +248,7 @@ impl Pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct Vertex {
|
||||
_position: [f32; 2],
|
||||
@ -270,6 +271,7 @@ const QUAD_VERTS: [Vertex; 4] = [
|
||||
},
|
||||
];
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct Quad {
|
||||
pub position: [f32; 2],
|
||||
|
Loading…
x
Reference in New Issue
Block a user