Function nannou::wgpu::clear_texture

source ·
pub fn clear_texture(
    texture: &TextureView,
    clear_color: Color,
    encoder: &mut CommandEncoder
)
Expand description

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.