pub enum InterpSampling {
Center,
Centroid,
Sample,
}Expand description
Where in a pixel a varying is sampled.
Variants§
Center
Sampled at the pixel’s centre.
Centroid
Sampled inside the primitive when the pixel centre is not covered (HLSL centroid).
Sample
Per sample.
Trait Implementations§
Source§impl Clone for InterpSampling
impl Clone for InterpSampling
impl Copy for InterpSampling
Source§impl Debug for InterpSampling
impl Debug for InterpSampling
impl Eq for InterpSampling
Source§impl Hash for InterpSampling
impl Hash for InterpSampling
Source§impl Ord for InterpSampling
impl Ord for InterpSampling
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 InterpSampling
impl PartialEq for InterpSampling
Source§impl PartialOrd for InterpSampling
impl PartialOrd for InterpSampling
Source§impl Serialize for InterpSampling
impl Serialize for InterpSampling
impl StructuralPartialEq for InterpSampling
Auto Trait Implementations§
impl Freeze for InterpSampling
impl RefUnwindSafe for InterpSampling
impl Send for InterpSampling
impl Sync for InterpSampling
impl Unpin for InterpSampling
impl UnsafeUnpin for InterpSampling
impl UnwindSafe for InterpSampling
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