pub struct ReadbackRing { /* private fields */ }Implementations§
Source§impl ReadbackRing
impl ReadbackRing
pub const DEPTH: usize = 4
pub fn new(device: &Device, label: &str, size: BufferAddress) -> Self
pub fn size(&self) -> BufferAddress
pub fn enqueue( &mut self, encoder: &mut SubmissionEncoder, source: &Buffer, source_offset: BufferAddress, bytes: BufferAddress, sequence: u64, ) -> Option<(u64, Vec<u8>)>
pub fn collect(&mut self) -> Vec<(u64, Vec<u8>)>
pub fn drain(&mut self) -> Vec<(u64, Vec<u8>)>
Auto Trait Implementations§
impl !RefUnwindSafe for ReadbackRing
impl !Sync for ReadbackRing
impl !UnwindSafe for ReadbackRing
impl Freeze for ReadbackRing
impl Send for ReadbackRing
impl Unpin for ReadbackRing
impl UnsafeUnpin for ReadbackRing
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more