![]() |
ezEngine
Release 25.03
|
Helper class that automatically creates a readback texture and controls it's lifetime. More...
#include <ReadbackHelper.h>
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. | |
![]() | |
EZ_FORCE_INLINE ezGALFenceHandle | GetCurrentFence () const |
Returns the fence of the last readback operation. | |
ezEnum< ezGALAsyncResult > | GetReadbackResult (ezTime timeout) const |
Returns the current status of the readback. | |
Additional Inherited Members | |
![]() | |
ezGALDevice * | m_pDevice = nullptr |
ezGALFenceHandle | m_hFence = 0 |
Helper class that automatically creates a readback texture and controls it's lifetime.