XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALTextureReadback Class Reference

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< xiiGALDeviceGetDevice () 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.
 

Detailed Description

Helper to read back GPU compute outputs from textures into CPU-readable staging textures.


The documentation for this class was generated from the following files: