#[repr(u8)]pub enum ChannelType {
Unorm = 0,
Snorm = 1,
Uint = 2,
Sint = 3,
Ufloat = 4,
Sfloat = 5,
Uscaled = 6,
Sscaled = 7,
Srgb = 8,
}
Expand description
Type of a surface channel. This is how we interpret the
storage allocated with SurfaceType
.
Variants§
Unorm = 0
Unsigned normalized.
Snorm = 1
Signed normalized.
Uint = 2
Unsigned integer.
Sint = 3
Signed integer.
Ufloat = 4
Unsigned floating-point.
Sfloat = 5
Signed floating-point.
Uscaled = 6
Unsigned scaled integer.
Sscaled = 7
Signed scaled integer.
Srgb = 8
Unsigned normalized, SRGB non-linear encoded.
Trait Implementations§
Source§impl Clone for ChannelType
impl Clone for ChannelType
Source§fn clone(&self) -> ChannelType
fn clone(&self) -> ChannelType
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 ChannelType
impl Debug for ChannelType
Source§impl Hash for ChannelType
impl Hash for ChannelType
Source§impl Ord for ChannelType
impl Ord for ChannelType
Source§fn cmp(&self, other: &ChannelType) -> Ordering
fn cmp(&self, other: &ChannelType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChannelType
impl PartialEq for ChannelType
Source§impl PartialOrd for ChannelType
impl PartialOrd for ChannelType
impl Copy for ChannelType
impl Eq for ChannelType
impl StructuralPartialEq for ChannelType
Auto Trait Implementations§
impl Freeze for ChannelType
impl RefUnwindSafe for ChannelType
impl Send for ChannelType
impl Sync for ChannelType
impl Unpin for ChannelType
impl UnwindSafe for ChannelType
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