Skip to main content

yuv420p_staging_bytes

Function yuv420p_staging_bytes 

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

Staging bytes of one planar YUV420 readback of size, including row padding, plane alignment and the 16-byte canary. A budget must reserve this per in-flight readback.

ยงErrors

Returns RenderError::TextureReadback when the layout overflows.