![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Manages an array of FRHIMemoryPool and supports defragmentation between multiple pools. More...
#include <RHIPoolAllocator.h>
Inheritance diagram for FRHIPoolAllocator:Protected Member Functions | |
| RHICORE_API bool | TryAllocateInternal (uint32 InSizeInBytes, uint32 InAllocationAlignment, ERHIPoolResourceTypes InAllocationResourceType, FRHIPoolAllocationData &AllocationData) |
| RHICORE_API void | DeallocateInternal (FRHIPoolAllocationData &AllocationData) |
| RHICORE_API void | SortPools () |
| virtual FRHIMemoryPool * | CreateNewPool (int16 InPoolIndex, uint32 InMinimumAllocationSize, ERHIPoolResourceTypes InAllocationResourceType)=0 |
| virtual bool | HandleDefragRequest (FRHIContextArray const &Contexts, FRHIPoolAllocationData *InSourceBlock, FRHIPoolAllocationData &InTmpTargetBlock)=0 |
Protected Attributes | |
| const uint64 | DefaultPoolSize |
| const uint32 | PoolAlignment |
| const uint64 | MaxAllocationSize |
| const FRHIMemoryPool::EFreeListOrder | FreeListOrder |
| const bool | bDefragEnabled |
| FCriticalSection | CS |
| TArray< FRHIMemoryPool * > | Pools |
| int32 | LastDefragPoolIndex |
| TArray< uint32 > | PoolAllocationOrder |
| uint32 | TotalAllocatedBlocks |
Friends | |
| class | FRHIMemoryPool |
Manages an array of FRHIMemoryPool and supports defragmentation between multiple pools.
| FRHIPoolAllocator::FRHIPoolAllocator | ( | uint64 | InDefaultPoolSize, |
| uint32 | InPoolAlignment, | ||
| uint32 | InMaxAllocationSize, | ||
| FRHIMemoryPool::EFreeListOrder | InFreeListOrder, | ||
| bool | InDefragEnabled | ||
| ) |
|
virtual |
|
protectedpure virtual |
Implemented in FD3D12PoolAllocator.
|
protected |
| void FRHIPoolAllocator::Defrag | ( | FRHIContextArray const & | Contexts, |
| uint32 | InMaxCopySize, | ||
| uint32 & | CurrentCopySize | ||
| ) |
| void FRHIPoolAllocator::Destroy | ( | ) |
|
protectedpure virtual |
Implemented in FD3D12PoolAllocator.
| void FRHIPoolAllocator::Initialize | ( | ) |
|
protected |
|
protected |
| void FRHIPoolAllocator::UpdateMemoryStats | ( | uint32 & | IOMemoryAllocated, |
| uint32 & | IOMemoryUsed, | ||
| uint32 & | IOMemoryFree, | ||
| uint32 & | IOMemoryEndFree, | ||
| uint32 & | IOAlignmentWaste, | ||
| uint32 & | IOAllocatedPageCount, | ||
| uint32 & | IOFullPageCount | ||
| ) |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |