Enum vulkano::format::NumericFormat
source · pub enum NumericFormat {
SFLOAT,
UFLOAT,
SINT,
UINT,
SNORM,
UNORM,
SSCALED,
USCALED,
SRGB,
}
Expand description
The numeric format in memory of the components of a format.
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
.
Implementations§
source§impl NumericFormat
impl NumericFormat
pub const fn numeric_type(self) -> NumericType
Trait Implementations§
source§impl Clone for NumericFormat
impl Clone for NumericFormat
source§fn clone(&self) -> NumericFormat
fn clone(&self) -> NumericFormat
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 NumericFormat
impl Debug for NumericFormat
source§impl From<NumericFormat> for NumericType
impl From<NumericFormat> for NumericType
source§fn from(val: NumericFormat) -> Self
fn from(val: NumericFormat) -> Self
Converts to this type from the input type.
source§impl Hash for NumericFormat
impl Hash for NumericFormat
source§impl PartialEq for NumericFormat
impl PartialEq for NumericFormat
source§fn eq(&self, other: &NumericFormat) -> bool
fn eq(&self, other: &NumericFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NumericFormat
impl Eq for NumericFormat
impl StructuralEq for NumericFormat
impl StructuralPartialEq for NumericFormat
Auto Trait Implementations§
impl RefUnwindSafe for NumericFormat
impl Send for NumericFormat
impl Sync for NumericFormat
impl Unpin for NumericFormat
impl UnwindSafe for NumericFormat
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