pub fn mip_size(format: u32, width: u32, height: u32) -> Result<usize>
Compute a level’s encoded size with format and dimension validation.