Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FGPUDefragAllocator
Description
Copy memory from one location to another. If it returns false, the defragmentation process will assume the memory is not relocatable and keep it in place. Note: Source and destination may overlap.
| Name | PlatformRelocate |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h |
| Include Path | #include "GPUDefragAllocator.h" |
void PlatformRelocate
(
void * Dest,
const void * Source,
int64 Size,
void * UserPayload
)
Parameters
| Name | Remarks |
|---|---|
| Dest | Destination memory start address |
| Source | Source memory start address |
| Size | Number of uint8s to copy |
| UserPayload | User payload for this allocation |