pub enum AlbedoFormat {
Rgb8Unorm,
Rgb8Snorm,
Srgb8,
Rgba8Unorm,
Rgba8Snorm,
Srgba8,
}
Variants§
Trait Implementations§
Source§impl Clone for AlbedoFormat
impl Clone for AlbedoFormat
Source§fn clone(&self) -> AlbedoFormat
fn clone(&self) -> AlbedoFormat
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 AlbedoFormat
impl Debug for AlbedoFormat
Source§impl From<AlbedoFormat> for c_uint
impl From<AlbedoFormat> for c_uint
Source§fn from(value: AlbedoFormat) -> Self
fn from(value: AlbedoFormat) -> Self
Converts to this type from the input type.
Source§impl ImagePixelFormat for AlbedoFormat
impl ImagePixelFormat for AlbedoFormat
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 AlbedoFormat
impl PartialEq for AlbedoFormat
impl Copy for AlbedoFormat
impl Eq for AlbedoFormat
impl StructuralPartialEq for AlbedoFormat
Auto Trait Implementations§
impl Freeze for AlbedoFormat
impl RefUnwindSafe for AlbedoFormat
impl Send for AlbedoFormat
impl Sync for AlbedoFormat
impl Unpin for AlbedoFormat
impl UnwindSafe for AlbedoFormat
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