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

No mipmap will be allocated or generated.

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

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

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.

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 Debug for MipmapsOption
[src]

[src]

Formats the value using the given formatter.

impl Copy for MipmapsOption
[src]

impl Clone for MipmapsOption
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for MipmapsOption
[src]

impl PartialEq for MipmapsOption
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl From<CompressedMipmapsOption> for MipmapsOption
[src]

[src]

Performs the conversion.