pub struct Texture3dOptions { /* private fields */ }Expand description
Explicit creation policy for independently filtered 3D RGBA8 images.
Implementations§
Source§impl Texture3dOptions
impl Texture3dOptions
Sourcepub const fn with_mipmaps(self, mipmaps: TextureMipmaps3d) -> Self
pub const fn with_mipmaps(self, mipmaps: TextureMipmaps3d) -> Self
Selects bounded complete-chain generation; packed tiles are not isolated automatically.
Sourcepub const fn with_alpha_preservation(self, preserve: bool) -> Self
pub const fn with_alpha_preservation(self, preserve: bool) -> Self
Accepts arbitrary straight alpha rather than requiring alpha 255.
Sourcepub const fn mipmaps(self) -> TextureMipmaps3d
pub const fn mipmaps(self) -> TextureMipmaps3d
Returns the retained complete-image mip policy.
Sourcepub const fn preserves_alpha(self) -> bool
pub const fn preserves_alpha(self) -> bool
Whether alpha values other than 255 are accepted and retained.
Trait Implementations§
Source§impl Clone for Texture3dOptions
impl Clone for Texture3dOptions
Source§fn clone(&self) -> Texture3dOptions
fn clone(&self) -> Texture3dOptions
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 Texture3dOptions
Source§impl Debug for Texture3dOptions
impl Debug for Texture3dOptions
Source§impl Default for Texture3dOptions
impl Default for Texture3dOptions
Source§fn default() -> Texture3dOptions
fn default() -> Texture3dOptions
Returns the “default value” for a type. Read more
impl Eq for Texture3dOptions
Source§impl PartialEq for Texture3dOptions
impl PartialEq for Texture3dOptions
impl StructuralPartialEq for Texture3dOptions
Auto Trait Implementations§
impl Freeze for Texture3dOptions
impl RefUnwindSafe for Texture3dOptions
impl Send for Texture3dOptions
impl Sync for Texture3dOptions
impl Unpin for Texture3dOptions
impl UnsafeUnpin for Texture3dOptions
impl UnwindSafe for Texture3dOptions
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.