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(u32)
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(u32)
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]
impl Copy for MipmapsOption
[src]
impl Clone for MipmapsOption
[src]
fn clone(&self) -> MipmapsOption
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for MipmapsOption
[src]
impl PartialEq for MipmapsOption
[src]
fn eq(&self, __arg_0: &MipmapsOption) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MipmapsOption) -> bool
[src]
This method tests for !=
.
impl From<CompressedMipmapsOption> for MipmapsOption
[src]
fn from(opt: CompressedMipmapsOption) -> MipmapsOption
[src]
Performs the conversion.