Function gl_capture::read_pixels

source ·
pub unsafe fn read_pixels(
    (x, y): (u32, u32),
    (w, h): (u32, u32),
    format: CaptureFormat,
    data: &mut [u8]
)
Expand description

Panics if the length of pixel data, is not at least w * h * format.byte_size()