Function enqueue_read_buffer_rect Copy item path Source pub unsafe fn enqueue_read_buffer_rect<T, M, En, Ewl>(
command_queue: &CommandQueue ,
buffer: M,
block: bool ,
buffer_origin: [usize ; 3 ],
host_origin: [usize ; 3 ],
region: [usize ; 3 ],
buffer_row_pitch_bytes: usize ,
buffer_slc_pitch_bytes: usize ,
host_row_pitch_bytes: usize ,
host_slc_pitch_bytes: usize ,
data: &mut [T] ,
wait_list: Option <Ewl>,
new_event: Option <En>,
) -> Result <() >
Expand description 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
).
§ Official Documentation
SDK - clEnqueueReadBufferRect