Skip to main content

Module readback

Module readback 

Source
Expand description

CPU readback buffers for color and depth buffers (for offscreen host overlays and test harnesses).

Structs§

ColorReadbackBuffer
Buffer for reading rendered RGBA/BGRA color pixels from GPU memory into CPU host memory.
DepthReadbackBuffer
Buffer for reading rendered depth values (Depth32Float) from GPU memory into CPU host memory.
DepthReadbackOptions
Configuration for DepthReadbackSurface row repacking.
DepthReadbackSurface
Reusable GPU-to-CPU Depth32Float readback surface owning a staging buffer and persistent [0.0, 1.0] cache.
ReadbackOptions
Configuration for ReadbackSurface row repacking and channel conversions.
ReadbackSurface
Reusable GPU-to-CPU color readback surface owning a staging buffer and a persistent pixel cache.

Enums§

ChannelSwizzle
Channel swizzle mode applied during ReadbackSurface row repacking.
ReadbackError
Errors produced by ReadbackSurface and DepthReadbackSurface map/poll operations.

Functions§

repack_depth_rows
Repacks 256-byte padded Depth32Float GPU rows into tightly packed f32 slices 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.