pub fn buffer_size_2d( width: usize, height: usize, element_size: usize, row_alignment: usize, ) -> usize
Compute the 2-D buffer size (rows × pitch) for a texture-like allocation.