Skip to main content

buffer_size_2d

Function buffer_size_2d 

Source
pub fn buffer_size_2d(
    width: usize,
    height: usize,
    element_size: usize,
    row_alignment: usize,
) -> usize
Expand description

Compute the 2-D buffer size (rows × pitch) for a texture-like allocation.