pub enum VertexChannelFormat {
kChannelFormatFloat = 0,
kChannelFormatFloat16 = 1,
kChannelFormatColor = 2,
kChannelFormatByte = 3,
kChannelFormatUInt32 = 4,
}Expand description
VertexChannelFormat, the formats below Unity 2017
(enums/VertexFormat.py:4-9).
Variants§
kChannelFormatFloat = 0
0, read as f.
kChannelFormatFloat16 = 1
1, read as e.
kChannelFormatColor = 2
2, read as B.
kChannelFormatByte = 3
3, read as B.
kChannelFormatUInt32 = 4
4, read as I.
Implementations§
Source§impl VertexChannelFormat
impl VertexChannelFormat
Sourcepub fn from_value(value: u8) -> Option<Self>
pub fn from_value(value: u8) -> Option<Self>
The member of this value, as VertexChannelFormat(value) finds it.
Sourcepub const fn struct_code(self) -> StructCode
pub const fn struct_code(self) -> StructCode
Its code in VERTEX_CHANNEL_FORMAT_STRUCT_TYPE_MAP
(enums/VertexFormat.py:43-49).
Trait Implementations§
Source§impl Clone for VertexChannelFormat
impl Clone for VertexChannelFormat
impl Copy for VertexChannelFormat
Source§impl Debug for VertexChannelFormat
impl Debug for VertexChannelFormat
impl Eq for VertexChannelFormat
Source§impl Hash for VertexChannelFormat
impl Hash for VertexChannelFormat
Source§impl PartialEq for VertexChannelFormat
impl PartialEq for VertexChannelFormat
impl StructuralPartialEq for VertexChannelFormat
Auto Trait Implementations§
impl Forget for VertexChannelFormat
impl Freeze for VertexChannelFormat
impl Move for VertexChannelFormat
impl RefUnwindSafe for VertexChannelFormat
impl Send for VertexChannelFormat
impl Sync for VertexChannelFormat
impl Unpin for VertexChannelFormat
impl UnsafeUnpin for VertexChannelFormat
impl UnwindSafe for VertexChannelFormat
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