Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FGPUDefragAllocator
Description
Immediately shrinks a memory chunk by moving the base address, without relocating any memory. Always succeeds.
Immediately shrinks a memory chunk by moving the base address, without relocating any memory. Always succeeds.
| Name | Shrink |
| 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 * Shrink
(
FMemoryChunk * Chunk,
int64 ShrinkAmount
)
The new shrunken chunk
Parameters
| Name | Remarks |
|---|---|
| Chunk | Chunk to shrink |
| ShrinkAmount | Number of uint8s to shrink by |
| Chunk | Chunk to shrink |
| ShrinkAmount | Number of bytes to shrink by |