Function ocl_core::create_buffer
[−]
[src]
pub unsafe fn create_buffer<C, T>(
context: C,
flags: MemFlags,
len: usize,
data: Option<&[T]>
) -> OclResult<Mem> where
C: ClContextPtr,
T: OclPrm,
Returns a new buffer pointer with size (bytes): len
* sizeof(T).