Enum naga::Interpolation[][src]

pub enum Interpolation {
    Perspective,
    Linear,
    Flat,
    Patch,
    Centroid,
    Sample,
}

The interpolation qualifier of a binding or struct field.

Variants

Perspective

The value will be interpolated in a perspective-correct fashion. Also known as "smooth" in glsl.

Linear

Indicates that linear, non-perspective, correct interpolation must be used. Also known as "no_perspective" in glsl.

Flat

Indicates that no interpolation will be performed.

Patch

Indicates a tessellation patch.

Centroid

When used with multi-sampling rasterization, allow a single interpolation location for an entire pixel.

Sample

When used with multi-sampling rasterization, require per-sample interpolation.

Trait Implementations

impl Clone for Interpolation[src]

impl Copy for Interpolation[src]

impl Debug for Interpolation[src]

impl Eq for Interpolation[src]

impl Hash for Interpolation[src]

impl Ord for Interpolation[src]

impl PartialEq<Interpolation> for Interpolation[src]

impl PartialOrd<Interpolation> for Interpolation[src]

impl StructuralEq for Interpolation[src]

impl StructuralPartialEq for Interpolation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.