From 18de50f365640226fa63198b7bcb36101b712f31 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 3 Nov 2024 11:27:57 -0500 Subject: [PATCH] Fix vertex declaration repr --- src/model_vertex_declarations.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model_vertex_declarations.rs b/src/model_vertex_declarations.rs index 55502cf..5414790 100644 --- a/src/model_vertex_declarations.rs +++ b/src/model_vertex_declarations.rs @@ -11,7 +11,7 @@ const END_OF_STREAM: u8 = 0xFF; /// The format of the vertex stream. #[binrw] #[brw(repr = u8)] -#[repr(C)] +#[repr(u8)] #[derive(Copy, Clone, Debug, PartialEq)] pub enum VertexType { /// 1 32-bit float @@ -74,7 +74,7 @@ pub fn get_vertex_type_size(vertex_type: VertexType) -> usize { /// What the vertex stream is used for. #[binrw] #[brw(repr = u8)] -#[repr(C)] +#[repr(u8)] #[derive(Copy, Clone, Debug, PartialEq)] pub enum VertexUsage { Position = 0,