Function ocl_core::create_sub_buffer
[−]
[src]
pub fn create_sub_buffer<T: OclPrm>(
buffer: &Mem,
flags: MemFlags,
buffer_create_info: &BufferRegion<T>
) -> OclResult<Mem>
Creates a new buffer object (referred to as a sub-buffer object) from an existing buffer object.
The returned sub-buffer has a number of caveats which can cause undefined behavior.