pub enum VertexFormat2017 {
Show 13 variants
kVertexFormatFloat = 0,
kVertexFormatFloat16 = 1,
kVertexFormatColor = 2,
kVertexFormatUNorm8 = 3,
kVertexFormatSNorm8 = 4,
kVertexFormatUNorm16 = 5,
kVertexFormatSNorm16 = 6,
kVertexFormatUInt8 = 7,
kVertexFormatSInt8 = 8,
kVertexFormatUInt16 = 9,
kVertexFormatSInt16 = 10,
kVertexFormatUInt32 = 11,
kVertexFormatSInt32 = 12,
}Expand description
VertexFormat2017, the formats of Unity 2017 and 2018
(enums/VertexFormat.py:12-25).
Variants§
kVertexFormatFloat = 0
0, read as f.
kVertexFormatFloat16 = 1
1, read as e.
kVertexFormatColor = 2
2, read as B.
kVertexFormatUNorm8 = 3
3, read as B.
kVertexFormatSNorm8 = 4
4, read as b.
kVertexFormatUNorm16 = 5
5, read as H.
kVertexFormatSNorm16 = 6
6, read as h.
kVertexFormatUInt8 = 7
7, read as B.
kVertexFormatSInt8 = 8
8, read as b.
kVertexFormatUInt16 = 9
9, read as H.
kVertexFormatSInt16 = 10
10, read as h.
kVertexFormatUInt32 = 11
11, read as I.
kVertexFormatSInt32 = 12
12, read as i.
Implementations§
Source§impl VertexFormat2017
impl VertexFormat2017
Sourcepub fn from_value(value: u8) -> Option<Self>
pub fn from_value(value: u8) -> Option<Self>
The member of this value, as VertexFormat2017(value) finds it.
Sourcepub const fn struct_code(self) -> StructCode
pub const fn struct_code(self) -> StructCode
Its code in VERTEX_FORMAT_2017_STRUCT_TYPE_MAP
(enums/VertexFormat.py:51-65).
Trait Implementations§
Source§impl Clone for VertexFormat2017
impl Clone for VertexFormat2017
impl Copy for VertexFormat2017
Source§impl Debug for VertexFormat2017
impl Debug for VertexFormat2017
impl Eq for VertexFormat2017
Source§impl Hash for VertexFormat2017
impl Hash for VertexFormat2017
Source§impl PartialEq for VertexFormat2017
impl PartialEq for VertexFormat2017
impl StructuralPartialEq for VertexFormat2017
Auto Trait Implementations§
impl Forget for VertexFormat2017
impl Freeze for VertexFormat2017
impl Move for VertexFormat2017
impl RefUnwindSafe for VertexFormat2017
impl Send for VertexFormat2017
impl Sync for VertexFormat2017
impl Unpin for VertexFormat2017
impl UnsafeUnpin for VertexFormat2017
impl UnwindSafe for VertexFormat2017
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