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
Source§fn clone(&self) -> SampleType
fn clone(&self) -> SampleType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
Source§fn cmp(&self, other: &SampleType) -> Ordering
fn cmp(&self, other: &SampleType) -> Ordering
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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SampleType
Auto Trait Implementations§
impl Forget for SampleType
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