1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-26 14:17:45 +00:00

Fix vertex declaration repr

This commit is contained in:
Joshua Goins 2024-11-03 11:27:57 -05:00
parent cbd47e2fe9
commit 18de50f365

View file

@ -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,