pub fn wait_all(&mut self) {
        for b in &mut self.buffers {
            if b.submitted {
                // b.fence.wait(None).unwrap();
                // b.fence.reset().unwrap();
                b.submitted = false;
            }
        }
    }
/// Wait until all staging buffer has completed.
/// TODO: ensure multithread-safe.
Wait until all staging buffer has completed.
TODO: ensure multithread-safe.
Wait until all staging buffer has completed . TODO : ensure multithread - safe .
pub fn wait_all(&mut self) {
        for b in &mut self.buffers {
            if b.submitted {
                // b.fence.wait(None).unwrap();
                // b.fence.reset().unwrap();
                b.submitted = false;
            }
        }
    }
pub fn wait_all ( & mut self ) { for b in & mut self . buffers { if b . submitted { // b.fence.wait(None).unwrap(); // b.fence.reset().unwrap(); b . submitted = false ; } } }
Wait until all staging buffer has completed.
Wait until all staging buffer has completed .
&mut self
&mut self