Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FGPUDefragAllocator
Description
Tries to immediately grow a memory chunk by moving the base address, without relocating any memory.
Tries to immediately grow a memory chunk by moving the base address, without relocating any memory.
| Name | Grow |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h |
| Include Path | #include "GPUDefragAllocator.h" |
| Source | /Engine/Source/Runtime/RHI/Private/GPUDefragAllocator.cpp |
FMemoryChunk * Grow
(
FMemoryChunk * Chunk,
int64 GrowAmount
)
nullptr if it failed, otherwise the new grown chunk
Parameters
| Name | Remarks |
|---|---|
| Chunk | Chunk to grow |
| GrowAmount | Number of uint8s to grow by |
| Chunk | Chunk to grow |
| GrowAmount | Number of bytes to grow by |