Function ocl::raw::enqueue_read_buffer [] [src]

pub unsafe fn enqueue_read_buffer<T>(command_queue: CommandQueueRaw, buffer: &MemRaw, block: bool, data: &[T], offset: usize, wait_list: Option<&[EventRaw]>, new_event: Option<&mut EventRaw>) -> 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