Enum gfx_hal::format::ChannelType
source · [−]#[repr(u8)]
pub enum ChannelType {
Unorm,
Snorm,
Uint,
Sint,
Ufloat,
Sfloat,
Uscaled,
Sscaled,
Srgb,
}
Expand description
Type of a surface channel. This is how we interpret the
storage allocated with SurfaceType
.
Variants
Unorm
Unsigned normalized.
Snorm
Signed normalized.
Uint
Unsigned integer.
Sint
Signed integer.
Ufloat
Unsigned floating-point.
Sfloat
Signed floating-point.
Uscaled
Unsigned scaled integer.
Sscaled
Signed scaled integer.
Srgb
Unsigned normalized, SRGB non-linear encoded.
Trait Implementations
sourceimpl Clone for ChannelType
impl Clone for ChannelType
sourcefn clone(&self) -> ChannelType
fn clone(&self) -> ChannelType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChannelType
impl Debug for ChannelType
sourceimpl Hash for ChannelType
impl Hash for ChannelType
sourceimpl Ord for ChannelType
impl Ord for ChannelType
sourceimpl PartialEq<ChannelType> for ChannelType
impl PartialEq<ChannelType> for ChannelType
sourceimpl PartialOrd<ChannelType> for ChannelType
impl PartialOrd<ChannelType> for ChannelType
sourcefn partial_cmp(&self, other: &ChannelType) -> Option<Ordering>
fn partial_cmp(&self, other: &ChannelType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for ChannelType
impl Eq for ChannelType
impl StructuralEq for ChannelType
impl StructuralPartialEq for ChannelType
Auto Trait Implementations
impl RefUnwindSafe for ChannelType
impl Send for ChannelType
impl Sync for ChannelType
impl Unpin for ChannelType
impl UnwindSafe for ChannelType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more