pub fn yuv420p_staging_bytes(size: RenderSize) -> Result<u64, RenderError>Expand description
The bytes one planar YUV420 readback of size stages: each plane’s rows
padded to the copy alignment, each plane starting on a placement boundary,
and the 16-byte canary that proves the GPU wrote them. This is what an
in-flight readback holds, and what a budget must reserve for it.
§Errors
Returns RenderError::TextureReadback when the layout overflows.