pub enum SampleType {
Float,
Sint,
Uint,
Depth,
}Expand description
What a texture returns when it is read.
Variants§
Float
Floating-point (or normalized) texels, read as floats.
Sint
Signed integer texels.
Uint
Unsigned integer texels.
Depth
A depth texture (a source whose API distinguishes it from a float texture; D3D does not).
Trait Implementations§
Source§impl Clone for SampleType
impl Clone for SampleType
impl Copy for SampleType
Source§impl Debug for SampleType
impl Debug for SampleType
impl Eq for SampleType
Source§impl Hash for SampleType
impl Hash for SampleType
Source§impl Ord for SampleType
impl Ord for SampleType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SampleType
impl PartialEq for SampleType
Source§impl PartialOrd for SampleType
impl PartialOrd for SampleType
Source§impl Serialize for SampleType
impl Serialize for SampleType
impl StructuralPartialEq for SampleType
Auto Trait Implementations§
impl Freeze for SampleType
impl RefUnwindSafe for SampleType
impl Send for SampleType
impl Sync for SampleType
impl Unpin for SampleType
impl UnsafeUnpin for SampleType
impl UnwindSafe for SampleType
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