pub fn image_2d_size_bytes( pixel_kind: PixelKind, width: usize, height: usize, ) -> usize
Calculates size in bytes of a rectangular texture using the given size of the texture and its pixel kind.