pub enum VertexFormat {
kVertexFormatFloat = 0,
kVertexFormatFloat16 = 1,
kVertexFormatUNorm8 = 2,
kVertexFormatSNorm8 = 3,
kVertexFormatUNorm16 = 4,
kVertexFormatSNorm16 = 5,
kVertexFormatUInt8 = 6,
kVertexFormatSInt8 = 7,
kVertexFormatUInt16 = 8,
kVertexFormatSInt16 = 9,
kVertexFormatUInt32 = 10,
kVertexFormatSInt32 = 11,
}Expand description
VertexFormat, the formats from Unity 2019 (enums/VertexFormat.py:28-40).
Variants§
kVertexFormatFloat = 0
0, read as f.
kVertexFormatFloat16 = 1
1, read as e.
kVertexFormatUNorm8 = 2
2, read as B.
kVertexFormatSNorm8 = 3
3, read as b.
kVertexFormatUNorm16 = 4
4, read as H.
kVertexFormatSNorm16 = 5
5, read as h.
kVertexFormatUInt8 = 6
6, read as B.
kVertexFormatSInt8 = 7
7, read as b.
kVertexFormatUInt16 = 8
8, read as H.
kVertexFormatSInt16 = 9
9, read as h.
kVertexFormatUInt32 = 10
10, read as I.
kVertexFormatSInt32 = 11
11, read as i.
Implementations§
Source§impl VertexFormat
impl VertexFormat
Sourcepub fn from_value(value: u8) -> Option<Self>
pub fn from_value(value: u8) -> Option<Self>
The member of this value, as VertexFormat(value) finds it.
Sourcepub const fn struct_code(self) -> StructCode
pub const fn struct_code(self) -> StructCode
Its code in VERTEX_FORMAT_STRUCT_TYPE_MAP
(enums/VertexFormat.py:67-80).
Trait Implementations§
Source§impl Clone for VertexFormat
impl Clone for VertexFormat
impl Copy for VertexFormat
Source§impl Debug for VertexFormat
impl Debug for VertexFormat
impl Eq for VertexFormat
Source§impl Hash for VertexFormat
impl Hash for VertexFormat
Source§impl PartialEq for VertexFormat
impl PartialEq for VertexFormat
impl StructuralPartialEq for VertexFormat
Auto Trait Implementations§
impl Forget for VertexFormat
impl Freeze for VertexFormat
impl Move for VertexFormat
impl RefUnwindSafe for VertexFormat
impl Send for VertexFormat
impl Sync for VertexFormat
impl Unpin for VertexFormat
impl UnsafeUnpin for VertexFormat
impl UnwindSafe for VertexFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more