Skip to content

Commit

Permalink
Make Vertex struct #[repr(C)]
Browse files Browse the repository at this point in the history
Required since Rust 1.67
  • Loading branch information
scurest committed Aug 2, 2024
1 parent 0a203e6 commit da79b95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/primitives/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ pub struct DrawCall {
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct Vertex {
pub position: [f32; 3],
pub texcoord: [f32; 2],
Expand Down

0 comments on commit da79b95

Please # to comment.