Enum glium::texture::MipmapsOption
source · pub enum MipmapsOption {
NoMipmap,
EmptyMipmaps,
EmptyMipmapsMax(u32),
AutoGeneratedMipmaps,
AutoGeneratedMipmapsMax(u32),
}
Expand description
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§
source§impl Clone for MipmapsOption
impl Clone for MipmapsOption
source§fn clone(&self) -> MipmapsOption
fn clone(&self) -> MipmapsOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MipmapsOption
impl Debug for MipmapsOption
source§impl From<CompressedMipmapsOption> for MipmapsOption
impl From<CompressedMipmapsOption> for MipmapsOption
source§fn from(opt: CompressedMipmapsOption) -> MipmapsOption
fn from(opt: CompressedMipmapsOption) -> MipmapsOption
source§impl PartialEq for MipmapsOption
impl PartialEq for MipmapsOption
source§fn eq(&self, other: &MipmapsOption) -> bool
fn eq(&self, other: &MipmapsOption) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for MipmapsOption
impl Eq for MipmapsOption
impl StructuralEq for MipmapsOption
impl StructuralPartialEq for MipmapsOption
Auto Trait Implementations§
impl RefUnwindSafe for MipmapsOption
impl Send for MipmapsOption
impl Sync for MipmapsOption
impl Unpin for MipmapsOption
impl UnwindSafe for MipmapsOption
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.