Skip to main content

readback_layout

Function readback_layout 

pub fn readback_layout(
    width: u32,
    height: u32,
) -> Option<(u32, u32, u64, usize)>
Expand description

Returns (padded_bytes_per_row, unpadded_bytes_per_row, readback_bytes, output_bytes) when (width, height) fits within MAX_OFFSCREEN_DIMENSION and MAX_PIXEL_READBACK_BYTES.