[][src]Function nannou::wgpu::clear_texture

pub fn clear_texture(
    texture: &TextureViewHandle,
    clear_color: Color,
    encoder: &mut CommandEncoder
)

Adds a simple render pass command to the given encoder that simply clears the given texture with the given colour.

The given texture must have TextureUsage::OUTPUT_ATTACHMENT enabled.