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§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
Source§fn read<F, E>(size: usize, f: F) -> Result<T, E>
fn read<F, E>(size: usize, f: F) -> Result<T, E>
Owned
.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SetParameter for T
impl<T> SetParameter for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.