|
|
|
@ -34,8 +34,9 @@ impl CompuBuffers {
|
|
|
|
|
CpuAccessibleBuffer::from_iter(device.clone(), BufferUsage::all(), false, data_iter).unwrap()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let output_data = vec![0; data_length as usize];
|
|
|
|
|
let output_buffer = {
|
|
|
|
|
let mut buff = data.iter();
|
|
|
|
|
let mut buff = output_data.iter();
|
|
|
|
|
let data_iter = (0..data_length).map(|n| *(buff.next().unwrap()));
|
|
|
|
|
CpuAccessibleBuffer::from_iter(device.clone(), BufferUsage::all(), false, data_iter).unwrap()
|
|
|
|
|
};
|
|
|
|
|