pub fn pack_chunks(
frames: &[FaceFrame],
realize: &[(u32, Chunk)],
res: u32,
) -> Vec<u8> ⓘExpand description
Pack all visible chunks into a contiguous ChunkGpu byte buffer (one entry per chunk).
frames is the full 20-element icosphere face-frame array indexed by chunk.id.face;
realize is a list of (slot, Chunk) pairs as returned by the chunk-cache allocator.
Returns realize.len() * size_of::<ChunkGpu>() bytes.