pub enum InterpMode {
Perspective,
Linear,
Flat,
}Expand description
How a varying is interpolated across a primitive.
Variants§
Perspective
Perspective-correct (the default for an interpolant).
Linear
Linear in screen space (HLSL noperspective).
Flat
The provoking vertex’s value, not interpolated.
Trait Implementations§
Source§impl Clone for InterpMode
impl Clone for InterpMode
impl Copy for InterpMode
Source§impl Debug for InterpMode
impl Debug for InterpMode
impl Eq for InterpMode
Source§impl Hash for InterpMode
impl Hash for InterpMode
Source§impl Ord for InterpMode
impl Ord for InterpMode
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 InterpMode
impl PartialEq for InterpMode
Source§impl PartialOrd for InterpMode
impl PartialOrd for InterpMode
Source§impl Serialize for InterpMode
impl Serialize for InterpMode
impl StructuralPartialEq for InterpMode
Auto Trait Implementations§
impl Freeze for InterpMode
impl RefUnwindSafe for InterpMode
impl Send for InterpMode
impl Sync for InterpMode
impl Unpin for InterpMode
impl UnsafeUnpin for InterpMode
impl UnwindSafe for InterpMode
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