Enum dae_parser::SurfaceRange
source · [−]pub enum SurfaceRange {
SNorm,
UNorm,
SInt,
UInt,
Float,
}
Expand description
The range of texel channel values. Each channel represents a range of values. Some example ranges are signed or unsigned integers, or are within a clamped range such as 0.0f to 1.0f, or are a high dynamic range via floating point.
Variants
SNorm
Format represents a decimal value that remains within the -1 to 1 range. Implementation could be integer, fixed-point, or float.
UNorm
Format represents a decimal value that remains within the 0 to 1 range. Implementation could be integer, fixed-point, or float.
SInt
Format represents signed integer numbers; for example, 8 bits can represent -128 to 127.
UInt
Format represents unsigned integer numbers. For example, 8 bits can represent 0 to 255.
Float
Format should support full floating-point ranges typically used for high dynamic range.
Implementations
sourceimpl SurfaceRange
impl SurfaceRange
Trait Implementations
sourceimpl Clone for SurfaceRange
impl Clone for SurfaceRange
sourcefn clone(&self) -> SurfaceRange
fn clone(&self) -> SurfaceRange
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 SurfaceRange
impl Debug for SurfaceRange
sourceimpl Display for SurfaceRange
impl Display for SurfaceRange
sourceimpl FromStr for SurfaceRange
impl FromStr for SurfaceRange
sourceimpl PartialEq<SurfaceRange> for SurfaceRange
impl PartialEq<SurfaceRange> for SurfaceRange
impl Copy for SurfaceRange
impl Eq for SurfaceRange
impl StructuralEq for SurfaceRange
impl StructuralPartialEq for SurfaceRange
Auto Trait Implementations
impl RefUnwindSafe for SurfaceRange
impl Send for SurfaceRange
impl Sync for SurfaceRange
impl Unpin for SurfaceRange
impl UnwindSafe for SurfaceRange
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more