![]() |
XII Release 0.1.0
|
Helper to read back GPU compute outputs from textures into CPU-readable staging textures. More...
#include <TextureReadback.h>
Classes | |
| struct | ReadbackCapture |
| struct | ReadbackRequest |
Public Member Functions | |
| xiiGALTextureReadback (xiiSharedPtr< xiiGALDevice > pDevice) | |
| XII_ALWAYS_INLINE xiiSharedPtr< xiiGALDevice > | GetDevice () const |
| void | Enqueue (xiiSharedPtr< xiiGALCommandList > pCommandList, const ReadbackRequest &request) |
| Enqueue a readback from a texture into an internal staging texture. Records copy commands on the provided command list and signals an internal fence. | |
| bool | HasCompleted () const |
| Returns true if the oldest pending readback has completed on the GPU. | |
| ReadbackCapture | GetCompleted () |
| Retrieves the oldest completed readback capture (if any). Non-blocking. | |
| void | WaitForNextCompleted () |
| Blocks until at least one pending readback completes. | |
| void | RecycleStagingTexture (xiiSharedPtr< xiiGALTexture > &&pStagingTexture) |
| Recycle a staging texture back into the internal pool for reuse. | |
Helper to read back GPU compute outputs from textures into CPU-readable staging textures.