master
mitchellhansen 4 years ago
parent 67efffa139
commit e861378fab

@ -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()
};

Loading…
Cancel
Save