FGPUDefragAllocator::Reallocate

Tries to reallocate texture memory in-place (without relocating), by adjusting the base address of the allocation but keeping the end address the same.

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

void * Reallocate
(
    void * OldBaseAddress,
    int64 NewSize
)

Remarks

Tries to reallocate texture memory in-place (without relocating), by adjusting the base address of the allocation but keeping the end address the same.

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.

Returns

New base address if it succeeded, otherwise nullptr

Parameters

Parameter

Description

OldBaseAddress

Pointer to the original allocation

OldBaseAddress

Pointer to the original allocation

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