[−][src]Trait wgpu_mipmap::MipmapGenerator
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>
&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 thetexture
.
Implementors
impl MipmapGenerator for ComputeMipmapGenerator
[src]
fn generate(
&self,
device: &Device,
encoder: &mut CommandEncoder,
texture: &Texture,
texture_descriptor: &TextureDescriptor<'_>
) -> Result<(), Error>
[src]
&self,
device: &Device,
encoder: &mut CommandEncoder,
texture: &Texture,
texture_descriptor: &TextureDescriptor<'_>
) -> Result<(), Error>
impl MipmapGenerator for RecommendedMipmapGenerator
[src]
fn generate(
&self,
device: &Device,
encoder: &mut CommandEncoder,
texture: &Texture,
texture_descriptor: &TextureDescriptor<'_>
) -> Result<(), Error>
[src]
&self,
device: &Device,
encoder: &mut CommandEncoder,
texture: &Texture,
texture_descriptor: &TextureDescriptor<'_>
) -> Result<(), Error>
impl MipmapGenerator for RenderMipmapGenerator
[src]
fn generate(
&self,
device: &Device,
encoder: &mut CommandEncoder,
texture: &Texture,
texture_descriptor: &TextureDescriptor<'_>
) -> Result<(), Error>
[src]
&self,
device: &Device,
encoder: &mut CommandEncoder,
texture: &Texture,
texture_descriptor: &TextureDescriptor<'_>
) -> Result<(), Error>
impl<'a> MipmapGenerator for CopyMipmapGenerator<'a>
[src]
fn generate(
&self,
device: &Device,
encoder: &mut CommandEncoder,
texture: &Texture,
texture_descriptor: &TextureDescriptor<'_>
) -> Result<(), Error>
[src]
&self,
device: &Device,
encoder: &mut CommandEncoder,
texture: &Texture,
texture_descriptor: &TextureDescriptor<'_>
) -> Result<(), Error>