pub fn write_zero_padded(dst: WriteOnly<'_, [u8]>, src: &[u8])Expand description
Writes src into the front of dst and zeroes the rest of it — the bytes
with_padded_alphas hands a queue write, laid straight into a staging
mapping instead (see frust_gpu::staging).
A src longer than dst is cut at dst’s length; the caller sizes dst
to the texture’s whole footprint, which every frame’s coverage was checked
to fit before anything was recorded.