FGPUDefragAllocator::FindAdjacent

Defrag helper function. Checks if the specified allocation fits within the adjacent free chunk(s).

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 * FindAdjacent
(
    FMemoryChunk * UsedChunk,
    bool bAnyChunkType
)

Remarks

Defrag helper function. Checks if the specified allocation fits within the adjacent free chunk(s).

Returns

Returns 'UsedChunk' if it fits the criteria, otherwise nullptr

Parameters

Parameter

Description

UsedChunk

Allocated chunk to check for a fit

bAnyChunkType

If false, only succeeds if 'UsedChunk' has a reallocation request and fits

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