pub trait Readback: Debug {
// Required method
fn resolve(
&self,
offset: u64,
size: u64,
) -> impl Future<Output = Result<Vec<u8>, GpuError>> + '_;
}Expand description
A detached readback over one buffer.
The handle owns everything it needs to await a mapped range, so a caller can release every borrow of the renderer that submitted the copy before the wait begins. On the browser’s single JavaScript thread that is what lets a frame render while a pick is still resolving its readback.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".