Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FGPUDefragAllocator
Description
Sorts the freelist based on increasing base address.
Sorts the freelist based on increasing base address.
| Name | SortFreeList |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h |
| Include Path | #include "GPUDefragAllocator.h" |
| Source | /Engine/Source/Runtime/RHI/Private/GPUDefragAllocator.cpp |
void SortFreeList
(
int32 & NumFreeChunks,
int64 & LargestFreeChunk
)
Parameters
| Name | Remarks |
|---|---|
| NumFreeChunks | [out] Number of free chunks |
| LargestFreeChunk | [out] Size of the largest free chunk, in uint8s |
| NumFreeChunks | [out] Number of free chunks |
| LargestFreeChunk | [out] Size of the largest free chunk, in bytes |