Trait lf_gfx::LfBufferExt
source · pub trait LfBufferExt: SealedBuffer {
// Required method
fn debug_read_blocking(&self, device: &Device, queue: &Queue) -> Vec<u8>;
}
Expand description
Extensions to wgpu::Buffer
.
Required Methods§
sourcefn debug_read_blocking(&self, device: &Device, queue: &Queue) -> Vec<u8>
fn debug_read_blocking(&self, device: &Device, queue: &Queue) -> Vec<u8>
Blocks and reads the entire buffer, giving the bytes contained. Allocates the temporary staging buffer for
this operation. Panics on error, or if the buffer was not created with wgpu::BufferUsages::COPY_SRC
.
Just use wgpu::Queue::write_buffer
if you want to write.