Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FGPUDefragAllocator
Description
Initiates an async relocation of an allocated chunk into a free chunk. Takes potential reallocation request into account.
Initiates an async relocation of an allocated chunk into a free chunk. Takes potential reallocation request into account.
| Name | RelocateIntoFreeChunk |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h |
| Include Path | #include "GPUDefragAllocator.h" |
| Source | /Engine/Source/Runtime/RHI/Private/GPUDefragAllocator.cpp |
FMemoryChunk * RelocateIntoFreeChunk
(
FRelocationStats & Stats,
FMemoryChunk * FreeChunk,
FMemoryChunk * UsedChunk
)
Next Free chunk to try to fill up
Parameters
| Name | Remarks |
|---|---|
| Stats | [out] Stats |
| FreeChunk | Destination chunk (free memory) |
| UsedChunk | Source chunk (allocated memory) |
| Stats | [out] Stats |
| FreeChunk | Destination chunk (free memory) |
| SourceChunk | Source chunk (allocated memory) |