Skip to main content

build_dynamic_storage_buffer

Function build_dynamic_storage_buffer 

Source
pub fn build_dynamic_storage_buffer(
    device: &Device,
    element_size: u64,
    count: u64,
) -> (Buffer, u64)
Expand description

Builds an empty buffer sized to hold count elements of a dynamically-offset storage buffer, and returns the buffer along with the per-element stride.