Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FGPUDefragAllocator
Description
Tries to reallocate texture memory in-place (without relocating), by adjusting the base address of the allocation but keeping the end address the same. Note: Newly freed memory due to shrinking won't be available for allocation right away (need GPU sync).
Tries to reallocate texture memory in-place (without relocating), by adjusting the base address of the allocation but keeping the end address the same.
| Name | Reallocate |
| 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 * Reallocate
(
void * OldBaseAddress,
int64 NewSize
)
New base address if it succeeded, otherwise nullptr
Parameters
| Name | Remarks |
|---|---|
| OldBaseAddress | Pointer to the original allocation |
| OldBaseAddress | Pointer to the original allocation |