Skip to main content

copy_pixels

Function copy_pixels 

pub fn copy_pixels(
    pixels: &mut [u8],
    _: (u32, u32, usize),
    copies: &[DeviceCopy],
) -> bool
Expand description

Apply copies to pixels, a width-pixel-wide RGBA8 image whose rows are stride bytes apart, in order. Returns false, changing nothing, when a copy would leave the image.