#[repr(u32)]pub enum MeshComponentFormat {
Float16 = 0,
Float32 = 1,
UInt8 = 2,
SInt8 = 3,
UInt16 = 4,
SInt16 = 5,
UInt32 = 6,
SInt32 = 7,
}
Expand description
Mesh component format for a stream
Variants§
Float16 = 0
16-bit floating point
Float32 = 1
32-bit floating point
UInt8 = 2
8-bit unsigned integer
SInt8 = 3
8-bit signed integer
UInt16 = 4
16-bit unsigned integer
SInt16 = 5
16-bit signed integer
UInt32 = 6
32-bit unsigned integer
SInt32 = 7
32-bit signed integer
Trait Implementations§
Source§impl CheckedBitPattern for MeshComponentFormat
impl CheckedBitPattern for MeshComponentFormat
Source§type Bits = u32
type Bits = u32
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Clone for MeshComponentFormat
impl Clone for MeshComponentFormat
Source§fn clone(&self) -> MeshComponentFormat
fn clone(&self) -> MeshComponentFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MeshComponentFormat
impl Debug for MeshComponentFormat
Source§impl Hash for MeshComponentFormat
impl Hash for MeshComponentFormat
Source§impl PartialEq for MeshComponentFormat
impl PartialEq for MeshComponentFormat
impl Copy for MeshComponentFormat
impl Eq for MeshComponentFormat
impl NoUninit for MeshComponentFormat
impl StructuralPartialEq for MeshComponentFormat
Auto Trait Implementations§
impl Freeze for MeshComponentFormat
impl RefUnwindSafe for MeshComponentFormat
impl Send for MeshComponentFormat
impl Sync for MeshComponentFormat
impl Unpin for MeshComponentFormat
impl UnwindSafe for MeshComponentFormat
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