Enum ispc_downsampler::Format
source · pub enum Format {
Rgb8Unorm,
Rgb8Snorm,
Srgb8,
Rgba8Unorm,
Rgba8Snorm,
Srgba8,
}Variants§
Implementations§
source§impl Format
impl Format
pub fn num_channels(&self) -> usize
pub fn pixel_size(&self) -> usize
pub fn channel_size_in_bytes(&self) -> usize
Trait Implementations§
source§impl PartialEq for Format
impl PartialEq for Format
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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