[][src]Struct wgpu_mipmap::CopyMipmapGenerator

pub struct CopyMipmapGenerator<'a> { /* fields omitted */ }

Generates mipmaps for textures with sampled usage.

Implementations

impl<'a> CopyMipmapGenerator<'a>[src]

pub fn new(generator: &'a RenderMipmapGenerator) -> Self[src]

Once created, it can be used repeatedly to generate mipmaps for any texture supported by the render generator.

pub fn required_usage() -> TextureUsage[src]

Returns the texture usage CopyMipmapGenerator requires for mipmap generation.

Trait Implementations

impl<'a> MipmapGenerator for CopyMipmapGenerator<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for CopyMipmapGenerator<'a>

impl<'a> Send for CopyMipmapGenerator<'a>

impl<'a> Sync for CopyMipmapGenerator<'a>

impl<'a> Unpin for CopyMipmapGenerator<'a>

impl<'a> !UnwindSafe for CopyMipmapGenerator<'a>

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.