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
impl Copy for MipmapsOption
impl Eq for MipmapsOption
impl StructuralPartialEq for MipmapsOption
Auto Trait Implementations§
impl Freeze for MipmapsOption
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.