Enum vulkano::format::NumericType
source · [−]pub enum NumericType {
SFLOAT,
UFLOAT,
SINT,
UINT,
SNORM,
UNORM,
SSCALED,
USCALED,
SRGB,
}
Expand description
The numeric type that represents data of a format in memory.
Variants
SFLOAT
Signed floating-point number.
UFLOAT
Unsigned floating-point number.
SINT
Signed integer.
UINT
Unsigned integer.
SNORM
Signed integer that represents a normalized floating-point value in the range [-1,1].
UNORM
Unsigned integer that represents a normalized floating-point value in the range [0,1].
SSCALED
Signed integer that is converted to a floating-point value directly.
USCALED
Unsigned integer that is converted to a floating-point value directly.
SRGB
Unsigned integer where R, G, B components represent a normalized floating-point value in the
sRGB color space, while the A component is a simple normalized value as in UNORM
.
Trait Implementations
sourceimpl Clone for NumericType
impl Clone for NumericType
sourcefn clone(&self) -> NumericType
fn clone(&self) -> NumericType
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 NumericType
impl Debug for NumericType
sourceimpl From<NumericType> for ShaderScalarType
impl From<NumericType> for ShaderScalarType
sourcefn from(val: NumericType) -> Self
fn from(val: NumericType) -> Self
Converts to this type from the input type.
sourceimpl Hash for NumericType
impl Hash for NumericType
sourceimpl PartialEq<NumericType> for NumericType
impl PartialEq<NumericType> for NumericType
impl Copy for NumericType
impl Eq for NumericType
impl StructuralEq for NumericType
impl StructuralPartialEq for NumericType
Auto Trait Implementations
impl RefUnwindSafe for NumericType
impl Send for NumericType
impl Sync for NumericType
impl Unpin for NumericType
impl UnwindSafe for NumericType
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