Navigation
API > API/Runtime > API/Runtime/RHICore
Inheritance Hierarchy
- IRHITransientMemoryCache
- FRHITransientHeapCache
References
| Module | RHICore |
| Header | /Engine/Source/Runtime/RHICore/Public/RHICoreTransientResourceAllocator.h |
| Include | #include "RHICoreTransientResourceAllocator.h" |
Syntax
class FRHITransientHeapCache : public IRHITransientMemoryCache
Remarks
The RHI transient heap system is a base class for the platform implementation. It has a persistent lifetime and contains a cache of transient heaps. The transient allocator acquires heaps from the system and forfeits them at the end of its lifetime. Garbage collection of heaps is done using an internal counter that increments with each GarbageCollect call. This should be done periodically. Heaps older than a platform-specified fence latency are destroyed. Additionally, statistics are gathered automatically and reported to the 'rhitransientmemory' stats group.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FRHITransientHeapCache
(
const FInitializer& InInitializer |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FRHITransientHeap * | Acquire
(
uint64 FirstAllocationSize, |
||
| void | Forfeit
(
TConstArrayView< FRHITransientHeap* > Heaps |
||
| uint64 | |||
| uint64 | GetHeapSize
(
uint64 RequestedHeapSize |
||
| const FInitializer & |
Overridden from IRHITransientMemoryCache
| Type | Name | Description | |
|---|---|---|---|
| void |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FInitializer |