pub fn check_heightmap(
resolution: u32,
heights: &[i16],
holes: Option<&[u8]>,
) -> Result<(), HeightmapError>Expand description
What a heightmap must be to be read: resolution x resolution samples (at least 2 x 2: one cell), each
0..=MAX_HEIGHT, and, where it has holes, one per cell ((resolution - 1)^2).