Function upload_planar
pub fn upload_planar(
device: &Device,
queue: &Queue,
img: &PlanarImage,
width: u32,
height: u32,
) -> Option<VideoPlanes>Expand description
Upload a planar system-memory picture to the GPU as-is.
No colour conversion happens here — the planes go up in their native
format and YuvConverter does the arithmetic on the GPU. For 1080p NV12
that is 3.1 MB uploaded per frame against 8.3 MB for RGBA, and the 2
million-pixel conversion never runs on the CPU at all.