Expand description
GPU readback utilities.
Provides facilities for reading GPU framebuffer / texture data back to
CPU-accessible memory. On the CPU-stub backend this is a direct copy
(identity transform); on a real GPU backend the same interface wraps
wgpu::Buffer::map_read.
§Example
use oximedia_gpu::readback::GpuReadback;
let data = vec![0xFFu8; 4 * 4 * 4]; // 4×4 RGBA
let out = GpuReadback::download(4, 4, &data);
assert_eq!(out, data);Structs§
- GpuReadback
- GPU → CPU readback helper.