logo
pub fn read_pixels<T>(
    x: i32,
    y: i32,
    width: i32,
    height: i32,
    format: u32,
    type_: u32,
    buffer: &mut [T]
)