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 |
FMemoryChunk &42; Shrink
&40;
FMemoryChunk &42; Chunk,
int64 ShrinkAmount
&41;
Remarks
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. The new shrunken chunk
Parameters
| Name | Description |
|---|---|
| Chunk | Chunk to shrink |
| ShrinkAmount | Number of uint8s to shrink by |
| Chunk | Chunk to shrink |
| ShrinkAmount | Number of bytes to shrink by |