[][src]Struct wgpu_mipmap::RenderMipmapGenerator

pub struct RenderMipmapGenerator { /* fields omitted */ }

Generates mipmaps for textures with output attachment usage.

Implementations

impl RenderMipmapGenerator[src]

pub fn required_usage() -> TextureUsage[src]

Returns the texture usage RenderMipmapGenerator requires for mipmap generation.

pub fn new_with_format_hints(
    device: &Device,
    format_hints: &[TextureFormat]
) -> Self
[src]

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

impl Debug for RenderMipmapGenerator[src]

impl MipmapGenerator for RenderMipmapGenerator[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.