Module |
|
Header |
/Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h |
Include |
#include "GPUDefragAllocator.h" |
Source |
/Engine/Source/Runtime/RHI/Private/GPUDefragAllocator.cpp |
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
Parameter |
Description |
---|---|
OldBaseAddress |
Pointer to the original allocation |
OldBaseAddress |
Pointer to the original allocation |