Enum luminance_front::pixel::Type
source · [−]pub enum Type {
NormIntegral,
NormUnsigned,
Integral,
Unsigned,
Floating,
}
Expand description
Pixel type.
- Normalized integer types:
NormIntegral
andNormUnsigned
represent integer types (signed and unsigned, respectively). However, they are normalized when used in shader stages, i.e. fetching from them will yield a floating-point value. That value is comprised between0.0
and1.0
. - Integer types:
Integral
andUnsigned
allows to store signed and unsigned integers, respectively. - Floating-point types: currently, only
Floating
is supported.
Variants
NormIntegral
Normalized signed integral pixel type.
NormUnsigned
Normalized unsigned integral pixel type.
Integral
Signed integral pixel type.
Unsigned
Unsigned integral pixel type.
Floating
Floating-point pixel type.
Trait Implementations
impl Copy for Type
impl Eq for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more