Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FGPUDefragAllocator
References
| Module | RHI |
| Header | /Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h |
| Include | #include "GPUDefragAllocator.h" |
| Source | /Engine/Source/Runtime/RHI/Private/GPUDefragAllocator.cpp |
void &42; Reallocate
&40;
void &42; OldBaseAddress,
int64 NewSize
&41;
Remarks
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. New base address if it succeeded, otherwise nullptr
Parameters
| Name | Description |
|---|---|
| OldBaseAddress | Pointer to the original allocation |
| OldBaseAddress | Pointer to the original allocation |