![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RHICoreTransientResourceAllocator.h>
Public Member Functions | |
| TRHITransientResourceCache (uint32 InCapacity=kDefaultCapacity, uint32 InGarbageCollectLatency=kDefaultGarbageCollectLatency) | |
| ~TRHITransientResourceCache () | |
| template<typename CreateFunctionType > | |
| TransientResourceType * | Acquire (uint64 Hash, CreateFunctionType CreateFunction) |
| template<typename ReleaseFunctionType > | |
| void | Forfeit (uint64 CurrentFrameIndex, ReleaseFunctionType ReleaseFunction) |
| void | Forfeit (uint64 CurrentFrameIndex) |
| TConstArrayView< TransientResourceType * > | GetAllocated () const |
| uint32 | GetAllocatedCount () const |
| uint32 | GetSize () const |
| uint32 | GetCapacity () const |
| uint32 | GetHitCount () const |
| uint32 | GetMissCount () const |
| float | GetHitPercentage () const |
Static Public Attributes | |
| static const uint32 | kInfinity = ~0u |
| static const uint32 | kDefaultCapacity = kInfinity |
| static const uint32 | kDefaultGarbageCollectLatency = 32 |
An RHI transient resource cache designed to optimize fetches for resources placed into a heap with an offset. The cache has a fixed capacity whereby no garbage collection will occur. Once that capacity is exceeded, garbage collection is invoked on resources older than a specified generation (where generation is incremented with each cycle of forfeiting acquired resources).
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |