create_buffer

Function create_buffer 

Source
pub fn create_buffer<T: OclPrm, I: Into<SpatialDims> + Clone>(
    queue: &Queue,
    size: I,
    fill_value: T,
    flags: MemFlags,
) -> Buffer<T>
Expand description

Creates a buffer of the specified size and flags. The type is inferred from the fill value.