#[non_exhaustive]pub enum TextureMipmaps3d {
None,
Generate,
}Expand description
Optional mip generation for a retained 3D texture.
This policy applies to a complete, independently filtered image, not to individual cells of a packed atlas. Crop each tile into its own texture before generating mipmaps when neighboring cells must remain isolated.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Keep the supplied image unchanged and sample only its original level.
Generate
Generate every level down to 1 x 1 with an area-weighted box filter.
RGB is filtered in linear light with premultiplied alpha, then converted back to straight sRGB RGBA8. Source pixels remain byte-exact. Generated levels with alpha rounded to zero have zero RGB. This does not preserve alpha-test coverage: thin masked features can disappear in distant mips.
Trait Implementations§
Source§impl Clone for TextureMipmaps3d
impl Clone for TextureMipmaps3d
Source§fn clone(&self) -> TextureMipmaps3d
fn clone(&self) -> TextureMipmaps3d
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextureMipmaps3d
Source§impl Debug for TextureMipmaps3d
impl Debug for TextureMipmaps3d
Source§impl Default for TextureMipmaps3d
impl Default for TextureMipmaps3d
Source§fn default() -> TextureMipmaps3d
fn default() -> TextureMipmaps3d
Returns the “default value” for a type. Read more
impl Eq for TextureMipmaps3d
Source§impl PartialEq for TextureMipmaps3d
impl PartialEq for TextureMipmaps3d
impl StructuralPartialEq for TextureMipmaps3d
Auto Trait Implementations§
impl Freeze for TextureMipmaps3d
impl RefUnwindSafe for TextureMipmaps3d
impl Send for TextureMipmaps3d
impl Sync for TextureMipmaps3d
impl Unpin for TextureMipmaps3d
impl UnsafeUnpin for TextureMipmaps3d
impl UnwindSafe for TextureMipmaps3d
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.