Skip to main content

layout_staging_bytes

Function layout_staging_bytes 

Source
pub fn layout_staging_bytes(
    size: RenderSize,
    layout: PixelLayout,
) -> Result<u64, RenderError>
Expand description

The mapped buffer a readback of a size frame packed into layout takes (Renderer::begin_layout_readback), canary included: each plane’s rows padded to the copy alignment.

§Errors

RenderError::TextureReadback when the layout overflows.