ezEngine  Release 25.03
ezGALReadbackTextureHelper Class Reference

Helper class that automatically creates a readback texture and controls it's lifetime. More...

#include <ReadbackHelper.h>

Inheritance diagram for ezGALReadbackTextureHelper:

Public Member Functions

void Reset ()
 Free the memory of the readback texture.
 
ezGALFenceHandle ReadbackTexture (ezGALCommandEncoder &ref_encoder, ezGALTextureHandle hTexture)
 Starts a readback of a texture. A new readback texture will be created if the current one does not match the new texture.
 
ezReadbackTextureLock LockTexture (const ezArrayPtr< const ezGALTextureSubresource > &subResources, ezDynamicArray< ezGALSystemMemoryDescription > &out_memory)
 Same as ezGALDevice::LockTexture, but checks that the fence has been reached. If not, returns an invalid lock object.
 
- Public Member Functions inherited from ezGALReadbackHelper
EZ_FORCE_INLINE ezGALFenceHandle GetCurrentFence () const
 Returns the fence of the last readback operation.
 
ezEnum< ezGALAsyncResultGetReadbackResult (ezTime timeout) const
 Returns the current status of the readback.
 

Additional Inherited Members

- Protected Attributes inherited from ezGALReadbackHelper
ezGALDevicem_pDevice = nullptr
 
ezGALFenceHandle m_hFence = 0
 

Detailed Description

Helper class that automatically creates a readback texture and controls it's lifetime.


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