Navigation
API > API/Runtime > API/Runtime/RHICore
Inheritance Hierarchy
- IRHITransientResourceAllocator
- FRHITransientResourceHeapAllocator
References
| Module | RHICore |
| Header | /Engine/Source/Runtime/RHICore/Public/RHICoreTransientResourceAllocator.h |
| Include | #include "RHICoreTransientResourceAllocator.h" |
Syntax
class FRHITransientResourceHeapAllocator : public IRHITransientResourceAllocator
Remarks
A base class for implementing IRHITransientResourceAllocator for a virtual aliasing placed resource heap allocation strategy.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FRHITransientHeapCache & | HeapCache |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FRHITransientResourceHeapAllocator
(
FRHITransientHeapCache& InHeapCache |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FRHITransientBuffer * | CreateBufferInternal
(
const FRHIBufferCreateInfo& CreateInfo, |
Allocates a buffer on a heap at a specific offset, returning a cached RHI transient buffer pointer, or null if the allocation failed. | |
| FRHITransientTexture * | CreateTextureInternal
(
const FRHITextureCreateInfo& CreateInfo, |
Allocates a texture on a heap at a specific offset, returning a cached RHI transient texture pointer, or null if the allocation failed. | |
| TConstArrayView< FRHITransientHeap * > | GetHeaps () |
Returns the array of heaps used by this allocator, including the required commit size for each. |
Overridden from IRHITransientResourceAllocator
| Type | Name | Description | |
|---|---|---|---|
| void | DeallocateMemory
(
FRHITransientTexture* Texture, |
Deallocates a texture from its parent heap. Provide the current platform fence value used to update the heap. | |
| void | DeallocateMemory
(
FRHITransientBuffer* Buffer, |
Deallocates a buffer from its parent heap. Provide the current platform fence value used to update the heap. | |
| void | Flush
(
FRHICommandListImmediate& RHICmdList, |
Called to flush any active allocations prior to rendering. |