Skip to main content

write

Function write 

Source
pub fn write<E: CubeElement>(client: &Client, handle: &Handle, data: &[E])
Expand description

Writes data to the start of the existing device buffer handle (which holds at least data.len() elements of E): no allocation, enqueued after the work already queued on the client’s stream, so a buffer reused every window is not overwritten before the previous window’s kernels have read it.