pub unsafe fn enqueue_write_buffer<T, M, En, Ewl>(
command_queue: &CommandQueue,
buffer: M,
block: bool,
offset: usize,
data: &[T],
wait_list: Option<Ewl>,
new_event: Option<En>,
) -> Result<()>Expand description
Enqueues a write from host memory, data, to device memory referred to by
buffer.
ยง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).