Enum gfx_core::tex::AaMode [] [src]

pub enum AaMode {
    Single,
    Multi(NumSamples),
    Coverage(NumSamples, NumFragments),
}

Describes the configuration of samples inside each texel.

Variants

Single

No additional sample information

Multi

MultiSampled Anti-Aliasing (MSAA)

Coverage

Coverage Sampling Anti-Aliasing (CSAA/EQAA)

Methods

impl AaMode

fn get_num_fragments(&self) -> NumFragments

Return the number of actual data fragments stored per texel.

fn needs_resolve(&self) -> bool

Return true if the surface has to be resolved before sampling.

Trait Implementations

impl From<NumSamples> for AaMode

fn from(ns: NumSamples) -> AaMode

Derived Implementations

impl Debug for AaMode

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for AaMode

fn clone(&self) -> AaMode

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for AaMode

impl Hash for AaMode

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialOrd for AaMode

fn partial_cmp(&self, __arg_0: &AaMode) -> Option<Ordering>

fn lt(&self, __arg_0: &AaMode) -> bool

fn le(&self, __arg_0: &AaMode) -> bool

fn gt(&self, __arg_0: &AaMode) -> bool

fn ge(&self, __arg_0: &AaMode) -> bool

impl PartialEq for AaMode

fn eq(&self, __arg_0: &AaMode) -> bool

fn ne(&self, __arg_0: &AaMode) -> bool

impl Ord for AaMode

fn cmp(&self, __arg_0: &AaMode) -> Ordering

impl Eq for AaMode