pub fn staging_buffer(device: &Device, label: &str, size: u64) -> BufferExpand description
Create an empty CPU-mappable staging buffer of size bytes.
The returned buffer has usage MAP_READ | COPY_DST:
COPY_DST— accept acopy_buffer_to_bufferfrom a storage/output buffer.MAP_READ— allowsbuffer.slice(..).map_async(MapMode::Read, …).
§Panics
Panics if size is zero.