pub struct ComputeMipmapGenerator { /* private fields */ }Expand description
Generates mipmaps for textures with storage usage.
Implementations§
Source§impl ComputeMipmapGenerator
impl ComputeMipmapGenerator
Sourcepub fn required_usage() -> TextureUsage
pub fn required_usage() -> TextureUsage
Returns the texture usage ComputeMipmapGenerator requires for mipmap generation.
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 ComputeMipmapGenerator. 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 ComputeMipmapGenerator
impl Debug for ComputeMipmapGenerator
Auto Trait Implementations§
impl Freeze for ComputeMipmapGenerator
impl !RefUnwindSafe for ComputeMipmapGenerator
impl Send for ComputeMipmapGenerator
impl Sync for ComputeMipmapGenerator
impl Unpin for ComputeMipmapGenerator
impl !UnwindSafe for ComputeMipmapGenerator
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