Struct wgpu::util::DownloadBuffer [−][src]
pub struct DownloadBuffer(_, _);
Expand description
CPU accessible buffer used to download data back from the GPU.
Implementations
pub fn read_buffer(
device: &Device,
queue: &Queue,
buffer: &BufferSlice<'_>
) -> impl Future<Output = Result<Self, BufferAsyncError>> + Send
pub fn read_buffer(
device: &Device,
queue: &Queue,
buffer: &BufferSlice<'_>
) -> impl Future<Output = Result<Self, BufferAsyncError>> + Send
Asynchronously read the contents of a buffer.