Skip to main content

row_elements

Function row_elements 

Source
fn row_elements(
    element_size: u64,
    texels_per_element: u64,
    capacity: u64,
    max_dimension: u32,
) -> u32
Expand description

The number of elements a row holds: enough for a row to reach the copy alignment, then doubled until the elements fit within max_dimension rows.