Skip to main content

create_msaa_target

Function create_msaa_target 

Source
pub fn create_msaa_target(
    device: &Device,
    format: TextureFormat,
    width: u32,
    height: u32,
    sample_count: u32,
) -> Texture
Expand description

Allocate a transient multisample texture in format.

It resolves into the color attachment, so format and sample_count must be that attachment’s. Like the depth target it is transient: it is written and resolved inside the frame’s single pass and never read back.