Skip to main content

encode_copies

Function encode_copies 

pub fn encode_copies(
    device: &Device,
    encoder: &mut CommandEncoder,
    texture: &Texture,
    scratch: &mut CopyScratch,
    copies: &[DeviceCopy],
) -> bool
Expand description

Record copies within texture, in order, each through scratch. Returns false, recording nothing, when a copy would leave the texture: the caller must then repaint the target whole.