Struct wgpu_test::image::ReadbackBuffers
source · pub struct ReadbackBuffers { /* private fields */ }
Implementations§
source§impl ReadbackBuffers
impl ReadbackBuffers
pub fn new(device: &Device, texture: &Texture) -> Self
pub fn copy_from( &self, device: &Device, encoder: &mut CommandEncoder, texture: &Texture )
pub async fn are_zero(&self, ctx: &TestingContext) -> bool
pub async fn assert_buffer_contents( &self, ctx: &TestingContext, expected_data: &[u8] )
Auto Trait Implementations§
impl !RefUnwindSafe for ReadbackBuffers
impl Send for ReadbackBuffers
impl Sync for ReadbackBuffers
impl Unpin for ReadbackBuffers
impl !UnwindSafe for ReadbackBuffers
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