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