Module |
|
Header |
/Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h |
Include |
#include "GPUDefragAllocator.h" |
void Relocate
(
FRelocationStats & Stats,
FMemoryChunk * Dest,
int64 DestOffset,
const void * Source,
int64 Size,
void * UserPayload
)
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.
Parameter |
Description |
---|---|
Stats |
[out] Stats |
Dest |
Destination memory chunk |
DestOffset |
Destination offset, counted from the base address of the destination memory chunk, in uint8s |
Source |
Base address of the source memory |
Size |
Number of uint8s to copy |
UserPayload |
User payload for the allocation |