Function ocl_core::enqueue_read_buffer
[−]
[src]
pub unsafe fn enqueue_read_buffer<T: OclPrm>(command_queue: &CommandQueue,
buffer: &Mem,
block: bool,
offset: usize,
data: &mut [T],
wait_list: Option<&ClWaitList>,
new_event: Option<&mut ClEventPtrNew>)
-> OclResult<()>
Enqueues a read from device memory referred to by buffer to device memory,
data.
Safety
Caller must ensure that data lives until the read is complete. Use
new_event to monitor it (use [core::EventList::last_clone] if passing
an event list as new_event).