Skip to main content

bounded_offscreen_extent

Function bounded_offscreen_extent 

pub fn bounded_offscreen_extent(
    requested_width: u32,
    requested_height: u32,
) -> (u32, u32)
Expand description

Clamps (requested_width, requested_height) and halves dimensions until the row-padded readback staging footprint fits within MAX_PIXEL_READBACK_BYTES.