canvas::webgl_thread

Function flip_pixels_y

Source
fn flip_pixels_y(
    internal_format: TexFormat,
    data_type: TexDataType,
    width: usize,
    height: usize,
    unpacking_alignment: usize,
    pixels: Vec<u8>,
) -> Vec<u8> 
Expand description

Flips the pixels in the Vec on the Y axis.