Enum naga::Interpolation
source · [−]pub enum Interpolation {
Perspective,
Linear,
Flat,
}
Expand description
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.
Trait Implementations
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for Interpolation
impl<'arbitrary> Arbitrary<'arbitrary> for Interpolation
sourcefn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the given unstructured data. Read more
sourcefn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the entirety of the given
unstructured data. Read more
sourceimpl Clone for Interpolation
impl Clone for Interpolation
sourcefn clone(&self) -> Interpolation
fn clone(&self) -> Interpolation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Interpolation
impl Debug for Interpolation
sourceimpl<'de> Deserialize<'de> for Interpolation
impl<'de> Deserialize<'de> for Interpolation
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for Interpolation
impl Hash for Interpolation
sourceimpl Ord for Interpolation
impl Ord for Interpolation
sourceimpl PartialEq<Interpolation> for Interpolation
impl PartialEq<Interpolation> for Interpolation
sourceimpl PartialOrd<Interpolation> for Interpolation
impl PartialOrd<Interpolation> for Interpolation
sourcefn partial_cmp(&self, other: &Interpolation) -> Option<Ordering>
fn partial_cmp(&self, other: &Interpolation) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for Interpolation
impl Serialize for Interpolation
impl Copy for Interpolation
impl Eq for Interpolation
impl StructuralEq for Interpolation
impl StructuralPartialEq for Interpolation
Auto Trait Implementations
impl RefUnwindSafe for Interpolation
impl Send for Interpolation
impl Sync for Interpolation
impl Unpin for Interpolation
impl UnwindSafe for Interpolation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.