pub enum Type {
NormIntegral,
NormUnsigned,
Integral,
Unsigned,
Floating,
}Expand description
Pixel type.
- Normalized integer types:
NormIntegralandNormUnsignedrepresent 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.0and1.0. - Integer types:
IntegralandUnsignedallows to store signed and unsigned integers, respectively. - Floating-point types: currently, only
Floatingis 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 StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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