Enum glium::texture::MipmapsOption [] [src]

pub enum MipmapsOption {
    NoMipmap,
    EmptyMipmaps,
    EmptyMipmapsMax(u32),
    AutoGeneratedMipmaps,
    AutoGeneratedMipmapsMax(u32),
}

Describes what to do about mipmaps during texture creation.

Variants

NoMipmap

No mipmap will be allocated or generated.

EmptyMipmaps

Allocates space for all the possible amount of mipmaps given the texture dimensions.

EmptyMipmapsMax

Allocates space for the specified amount of mipmaps (excluding the top level) but does not generate mipmaps.

AutoGeneratedMipmaps

Allocates and generates mipmaps for all the possible levels given the texture dimensions.

This does not mean that you will get mipmaps, instead it indicates that mipmaps are allowed to be generated if possible.

AutoGeneratedMipmapsMax

Allocates and generates mipmaps for the specified amount of mipmaps (excluding the top level) the possible levels given the texture dimensions.

This does not mean that you will get mipmaps, instead it indicates that mipmaps are allowed to be generated if possible.

Trait Implementations

impl From<CompressedMipmapsOption> for MipmapsOption

fn from(opt: CompressedMipmapsOption) -> MipmapsOption

Derived Implementations

impl PartialEq for MipmapsOption

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

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

impl Eq for MipmapsOption

impl Clone for MipmapsOption

fn clone(&self) -> MipmapsOption

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

impl Copy for MipmapsOption

impl Debug for MipmapsOption

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