Function ocl_core::enqueue_read_buffer_rect
[−]
[src]
pub unsafe fn enqueue_read_buffer_rect<T: OclPrm>(command_queue: &CommandQueue, buffer: &Mem, block: bool, buffer_origin: [usize; 3], host_origin: [usize; 3], region: [usize; 3], buffer_row_pitch: usize, buffer_slc_pitch: usize, host_row_pitch: usize, host_slc_pitch: usize, data: &mut [T], wait_list: Option<&ClWaitList>, new_event: Option<&mut ClEventPtrNew>) -> OclResult<()>
Enqueues a command to read from a rectangular region from a buffer object to host memory.
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
).