Function ocl::core::enqueue_read_buffer
[−]
[src]
pub unsafe fn enqueue_read_buffer<T: OclNum, E: ClEventPtrNew>(command_queue: &CommandQueue, buffer: &Mem<T>, block: bool, data: &mut [T], offset: usize, wait_list: Option<&EventList>, new_event: Option<&mut E>) -> OclResult<()>
Enqueues a read from device memory referred to by buffer
to device memory,
data
.
Safety
It's complicated. Short version: make sure the memory pointed to by the
slice, data
, doesn't get reallocated before new_event
is complete.
[FIXME]: Add a proper explanation of all the ins and outs.
[FIXME]: Return result