Function ocl_core::enqueue_read_image [] [src]

pub unsafe fn enqueue_read_image<T, M, En, Ewl>(command_queue: &CommandQueue,
                                                image: M,
                                                block: bool,
                                                origin: [usize; 3],
                                                region: [usize; 3],
                                                row_pitch_bytes: usize,
                                                slc_pitch_bytes: usize,
                                                data: &mut [T],
                                                wait_list: Option<Ewl>,
                                                new_event: Option<En>)
                                                -> OclResult<()> where T: OclPrm,
        En: ClNullEventPtr,
        Ewl: ClWaitListPtr,
        M: AsMem<T> + MemCmdRw

Reads an image from device 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).