pub enum MipLevels {
GenerateAuto,
GenerateLevels(NonZeroU8),
Levels(NonZeroU8),
}
Expand description
Number of mip levels
Variants§
GenerateAuto
Generate mip levels automaticaly from image size, each mip level decreasing in resolution by half until 1x1
GenerateLevels(NonZeroU8)
Generate mip levels up to a certain level, each mip level decreasing in resolution by half
Levels(NonZeroU8)
Create the image with raw mip levels but without blitting the main texture data into them
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MipLevels
impl RefUnwindSafe for MipLevels
impl Send for MipLevels
impl Sync for MipLevels
impl Unpin for MipLevels
impl UnwindSafe for MipLevels
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§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
)