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
Source§fn clone(&self) -> InterpMode
fn clone(&self) -> InterpMode
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 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
Source§fn cmp(&self, other: &InterpMode) -> Ordering
fn cmp(&self, other: &InterpMode) -> 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 InterpMode
impl PartialEq for InterpMode
Source§impl PartialOrd for InterpMode
impl PartialOrd for InterpMode
Source§impl Serialize for InterpMode
impl Serialize for InterpMode
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 InterpMode
Auto Trait Implementations§
impl Forget for InterpMode
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