Enum glium::texture::CompressedMipmapsOption
source · pub enum CompressedMipmapsOption {
NoMipmap,
EmptyMipmaps,
EmptyMipmapsMax(u32),
}
Expand description
Describes what to do about mipmaps during compressed texture creation.
Variants§
NoMipmap
No mipmaps 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.
Trait Implementations§
source§impl Clone for CompressedMipmapsOption
impl Clone for CompressedMipmapsOption
source§fn clone(&self) -> CompressedMipmapsOption
fn clone(&self) -> CompressedMipmapsOption
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompressedMipmapsOption
impl Debug for CompressedMipmapsOption
source§impl From<CompressedMipmapsOption> for MipmapsOption
impl From<CompressedMipmapsOption> for MipmapsOption
source§fn from(opt: CompressedMipmapsOption) -> MipmapsOption
fn from(opt: CompressedMipmapsOption) -> MipmapsOption
Converts to this type from the input type.
source§impl PartialEq for CompressedMipmapsOption
impl PartialEq for CompressedMipmapsOption
impl Copy for CompressedMipmapsOption
impl Eq for CompressedMipmapsOption
impl StructuralPartialEq for CompressedMipmapsOption
Auto Trait Implementations§
impl Freeze for CompressedMipmapsOption
impl RefUnwindSafe for CompressedMipmapsOption
impl Send for CompressedMipmapsOption
impl Sync for CompressedMipmapsOption
impl Unpin for CompressedMipmapsOption
impl UnwindSafe for CompressedMipmapsOption
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
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)
🔬This is a nightly-only experimental API. (
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>
Prepares an output buffer, then turns this buffer into an
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
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
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>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.