[][src]Trait wgpu_mipmap::MipmapGenerator

pub trait MipmapGenerator {
    fn generate(
        &self,
        device: &Device,
        encoder: &mut CommandEncoder,
        texture: &Texture,
        texture_descriptor: &TextureDescriptor<'_>
    ) -> Result<(), Error>; }

MipmapGenerator describes types that can generate mipmaps for a texture.

Required methods

fn generate(
    &self,
    device: &Device,
    encoder: &mut CommandEncoder,
    texture: &Texture,
    texture_descriptor: &TextureDescriptor<'_>
) -> Result<(), Error>

Encodes commands to generate mipmaps for a texture.

Expectations:

  • texture_descriptor should be the same descriptor used to create the texture.
Loading content...

Implementors

impl MipmapGenerator for ComputeMipmapGenerator[src]

impl MipmapGenerator for RecommendedMipmapGenerator[src]

impl MipmapGenerator for RenderMipmapGenerator[src]

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

Loading content...