Enum gfx_core::texture::AaMode [−][src]
pub enum AaMode {
Single,
Multi(NumSamples),
Coverage(NumSamples, NumFragments),
}Describes the configuration of samples inside each texel.
Variants
SingleNo additional sample information
Multi(NumSamples)MultiSampled Anti-Aliasing (MSAA)
Coverage(NumSamples, NumFragments)Coverage Sampling Anti-Aliasing (CSAA/EQAA)
Methods
impl AaMode[src]
impl AaModepub fn get_num_fragments(&self) -> NumFragments[src]
pub fn get_num_fragments(&self) -> NumFragmentsReturn the number of actual data fragments stored per texel.
pub fn needs_resolve(&self) -> bool[src]
pub fn needs_resolve(&self) -> boolReturn true if the surface has to be resolved before sampling.
Trait Implementations
impl Clone for AaMode[src]
impl Clone for AaModefn clone(&self) -> AaMode[src]
fn clone(&self) -> AaModeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for AaMode[src]
impl Copy for AaModeimpl Debug for AaMode[src]
impl Debug for AaModefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for AaMode[src]
impl Eq for AaModeimpl Hash for AaMode[src]
impl Hash for AaModefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Ord for AaMode[src]
impl Ord for AaModefn cmp(&self, other: &AaMode) -> Ordering[src]
fn cmp(&self, other: &AaMode) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialEq for AaMode[src]
impl PartialEq for AaModefn eq(&self, other: &AaMode) -> bool[src]
fn eq(&self, other: &AaMode) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &AaMode) -> bool[src]
fn ne(&self, other: &AaMode) -> boolThis method tests for !=.
impl PartialOrd for AaMode[src]
impl PartialOrd for AaModefn partial_cmp(&self, other: &AaMode) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &AaMode) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &AaMode) -> bool[src]
fn lt(&self, other: &AaMode) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &AaMode) -> bool[src]
fn le(&self, other: &AaMode) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &AaMode) -> bool[src]
fn gt(&self, other: &AaMode) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &AaMode) -> bool[src]
fn ge(&self, other: &AaMode) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl From<NumSamples> for AaMode[src]
impl From<NumSamples> for AaModefn from(ns: NumSamples) -> AaMode[src]
fn from(ns: NumSamples) -> AaModePerforms the conversion.