pub struct RecommendedMipmapGenerator { /* private fields */ }Expand description
Generates mipmaps for textures with any usage using the compute, render, or copy backends.
Implementations§
Source§impl RecommendedMipmapGenerator
impl RecommendedMipmapGenerator
Sourcepub fn new(device: &Device) -> Self
pub fn new(device: &Device) -> Self
Creates a new RecommendedMipmapGenerator. Once created, it can be used repeatedly to
generate mipmaps for any texture with a supported format.
Sourcepub fn new_with_format_hints(
device: &Device,
format_hints: &[TextureFormat],
) -> Self
pub fn new_with_format_hints( device: &Device, format_hints: &[TextureFormat], ) -> Self
Creates a new RecommendedMipmapGenerator. Once created, it can be used repeatedly to
generate mipmaps for any texture with format specified in format_hints.
Trait Implementations§
Source§impl Debug for RecommendedMipmapGenerator
impl Debug for RecommendedMipmapGenerator
Auto Trait Implementations§
impl Freeze for RecommendedMipmapGenerator
impl !RefUnwindSafe for RecommendedMipmapGenerator
impl Send for RecommendedMipmapGenerator
impl Sync for RecommendedMipmapGenerator
impl Unpin for RecommendedMipmapGenerator
impl !UnwindSafe for RecommendedMipmapGenerator
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