pub enum NormalMapFormat {
R8g8b8,
R8g8TangentSpaceReconstructedZ,
}Variants§
Implementations§
source§impl NormalMapFormat
impl NormalMapFormat
pub fn pixel_size(self) -> usize
pub fn channel_size_in_bytes(self) -> usize
Trait Implementations§
source§impl Clone for NormalMapFormat
impl Clone for NormalMapFormat
source§fn clone(&self) -> NormalMapFormat
fn clone(&self) -> NormalMapFormat
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 NormalMapFormat
impl Debug for NormalMapFormat
source§impl From<NormalMapFormat> for c_uint
impl From<NormalMapFormat> for c_uint
source§fn from(value: NormalMapFormat) -> c_uint
fn from(value: NormalMapFormat) -> c_uint
Converts to this type from the input type.
source§impl PartialEq for NormalMapFormat
impl PartialEq for NormalMapFormat
source§fn eq(&self, other: &NormalMapFormat) -> bool
fn eq(&self, other: &NormalMapFormat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for NormalMapFormat
impl Eq for NormalMapFormat
impl StructuralPartialEq for NormalMapFormat
Auto Trait Implementations§
impl Freeze for NormalMapFormat
impl RefUnwindSafe for NormalMapFormat
impl Send for NormalMapFormat
impl Sync for NormalMapFormat
impl Unpin for NormalMapFormat
impl UnwindSafe for NormalMapFormat
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