1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-20 19:57:45 +00:00

Make vertex members public, and repr(C)

This commit is contained in:
Joshua Goins 2022-07-28 15:20:47 -04:00
parent ddda9bc598
commit 195726b1d0

View file

@ -290,13 +290,14 @@ struct VertexElement {
} }
#[derive(Clone)] #[derive(Clone)]
#[repr(C)]
pub struct Vertex { pub struct Vertex {
position : [f32; 3], pub position : [f32; 3],
uv: [f32; 2], pub uv: [f32; 2],
normal: [f32; 3], pub normal: [f32; 3],
bone_weight: [f32; 4], pub bone_weight: [f32; 4],
bone_id : [u8; 4] pub bone_id : [u8; 4]
} }
pub struct Part { pub struct Part {