FGPUDefragAllocator::Shrink

Immediately shrinks a memory chunk by moving the base address, without relocating any memory.

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h

Include

#include "GPUDefragAllocator.h"

Source

/Engine/Source/Runtime/RHI/Private/GPUDefragAllocator.cpp

Syntax

FMemoryChunk * Shrink
(
    FMemoryChunk * Chunk,
    int64 ShrinkAmount
)

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.

Returns

The new shrunken chunk

Parameters

Parameter

Description

Chunk

Chunk to shrink

ShrinkAmount

Number of uint8s to shrink by

Chunk

Chunk to shrink

ShrinkAmount

Number of bytes to shrink by

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss