Enum mod3d_base::BufferElementType
source · pub enum BufferElementType {
Float32,
Float16,
Int8,
Int16,
Int32,
}Expand description
The type of an element in a buffer
Variants§
Float32
32-bit floating point
Float16
16-bit floating point
Int8
8-bit integers
Int16
16-bit integers
Int32
32-bit integers
Implementations§
source§impl BufferElementType
impl BufferElementType
sourcepub fn byte_length(self) -> usize
pub fn byte_length(self) -> usize
Get the length in bytes of the element type
Trait Implementations§
source§impl Clone for BufferElementType
impl Clone for BufferElementType
source§fn clone(&self) -> BufferElementType
fn clone(&self) -> BufferElementType
Returns a copy 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 BufferElementType
impl Debug for BufferElementType
source§impl PartialEq for BufferElementType
impl PartialEq for BufferElementType
impl Copy for BufferElementType
impl Eq for BufferElementType
impl StructuralPartialEq for BufferElementType
Auto Trait Implementations§
impl Freeze for BufferElementType
impl RefUnwindSafe for BufferElementType
impl Send for BufferElementType
impl Sync for BufferElementType
impl Unpin for BufferElementType
impl UnwindSafe for BufferElementType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)