Enum nannou::ui::backend::glium::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 Clone for MipmapsOption
[src]
impl Clone for MipmapsOption
fn clone(&self) -> MipmapsOption
[src]
fn clone(&self) -> MipmapsOption
Returns 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 Debug for MipmapsOption
[src]
impl Debug for MipmapsOption
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<CompressedMipmapsOption> for MipmapsOption
[src]
impl From<CompressedMipmapsOption> for MipmapsOption
fn from(opt: CompressedMipmapsOption) -> MipmapsOption
[src]
fn from(opt: CompressedMipmapsOption) -> MipmapsOption
Performs the conversion.
impl Copy for MipmapsOption
[src]
impl Copy for MipmapsOption
impl Eq for MipmapsOption
[src]
impl Eq for MipmapsOption
impl PartialEq<MipmapsOption> for MipmapsOption
[src]
impl PartialEq<MipmapsOption> for MipmapsOption
fn eq(&self, other: &MipmapsOption) -> bool
[src]
fn eq(&self, other: &MipmapsOption) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MipmapsOption) -> bool
[src]
fn ne(&self, other: &MipmapsOption) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for MipmapsOption
impl Send for MipmapsOption
impl Sync for MipmapsOption
impl Sync for MipmapsOption