Expand description
CPU readback buffers for color and depth buffers (for offscreen host overlays and test harnesses).
Structs§
- Color
Readback Buffer - Buffer for reading rendered RGBA/BGRA color pixels from GPU memory into CPU host memory.
- Depth
Readback Buffer - Buffer for reading rendered depth values (
Depth32Float) from GPU memory into CPU host memory. - Depth
Readback Options - Configuration for
DepthReadbackSurfacerow repacking. - Depth
Readback Surface - Reusable GPU-to-CPU
Depth32Floatreadback surface owning a staging buffer and persistent[0.0, 1.0]cache. - Readback
Options - Configuration for
ReadbackSurfacerow repacking and channel conversions. - Readback
Surface - Reusable GPU-to-CPU color readback surface owning a staging buffer and a persistent pixel cache.
Enums§
- Channel
Swizzle - Channel swizzle mode applied during
ReadbackSurfacerow repacking. - Readback
Error - Errors produced by
ReadbackSurfaceandDepthReadbackSurfacemap/poll operations.
Functions§
- repack_
depth_ rows - Repacks 256-byte padded
Depth32FloatGPU rows into tightly packedf32slices with optional Y-flip. - repack_
rgba_ rows - Repacks 256-byte padded 4-channel GPU rows into tightly packed CPU pixels with optional Y-flip, unpremultiplication, and R/B channel swizzling.