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:
parent
cbd47e2fe9
commit
18de50f365
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue