Navigation
API > API/Runtime > API/Runtime/RHICore
Manages an array of FRHIMemoryPool and supports defragmentation between multiple pools
| Name | FRHIPoolAllocator |
| Type | class |
| Header File | /Engine/Source/Runtime/RHICore/Public/RHIPoolAllocator.h |
| Include Path | #include "RHIPoolAllocator.h" |
Syntax
class FRHIPoolAllocator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRHIPoolAllocator
(
uint64 InDefaultPoolSize, |
Constructor. | RHIPoolAllocator.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FRHIPoolAllocator() |
RHIPoolAllocator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Defrag
(
FRHIContextArray const& Contexts, |
Defrag & cleanup operation. | RHIPoolAllocator.h | |
void Destroy() |
RHIPoolAllocator.h | ||
void Initialize() |
Setup/Shutdown. | RHIPoolAllocator.h | |
void UpdateMemoryStats
(
uint32& IOMemoryAllocated, |
Stats. | RHIPoolAllocator.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRHIMemoryPool * CreateNewPool
(
int16 InPoolIndex, |
Helper function to create a new platform specific pool. | RHIPoolAllocator.h | |
void DeallocateInternal
(
FRHIPoolAllocationData& AllocationData |
RHIPoolAllocator.h | ||
bool HandleDefragRequest
(
FRHIContextArray const& Contexts, |
RHIPoolAllocator.h | ||
void SortPools() |
RHIPoolAllocator.h | ||
bool TryAllocateInternal
(
uint32 InSizeInBytes, |
Supported allocator operations. | RHIPoolAllocator.h |