pub enum NormalMapFormat {
Rgb8,
Rg8TangentSpaceReconstructedZ,
}
Variants§
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 ImagePixelFormat for NormalMapFormat
impl ImagePixelFormat for NormalMapFormat
Source§fn num_channel_in_memory(self) -> usize
fn num_channel_in_memory(self) -> usize
Returns the number of channels that an image of this format would have in memory.
For example, while a normal map of format [
NormalMapFormat::R8g8TangentSpaceReconstructedZ
] would still have 3 channels when sampled,
in memory it will have 2 channels.Source§fn channel_size_in_bytes(self) -> usize
fn channel_size_in_bytes(self) -> usize
Returns the size of a single value channel, in bytes.
Source§fn pixel_size_in_bytes(self) -> usize
fn pixel_size_in_bytes(self) -> usize
Returns the size in bytes of a single pixel.
Generally this will be equal to
channel_size_in_bytes()
* num_channel_in_memory()
.Source§impl PartialEq for NormalMapFormat
impl PartialEq for NormalMapFormat
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