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§
Trait Implementations§
Source§impl Clone for SurfaceRange
impl Clone for SurfaceRange
Source§fn clone(&self) -> SurfaceRange
fn clone(&self) -> SurfaceRange
Returns a duplicate 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 SurfaceRange
impl Debug for SurfaceRange
Source§impl Display for SurfaceRange
impl Display for SurfaceRange
Source§impl FromStr for SurfaceRange
impl FromStr for SurfaceRange
Source§impl PartialEq for SurfaceRange
impl PartialEq for SurfaceRange
impl Copy for SurfaceRange
impl Eq for SurfaceRange
impl StructuralPartialEq for SurfaceRange
Auto Trait Implementations§
impl Freeze for SurfaceRange
impl RefUnwindSafe for SurfaceRange
impl Send for SurfaceRange
impl Sync for SurfaceRange
impl Unpin for SurfaceRange
impl UnwindSafe for SurfaceRange
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