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