Module |
|
Header |
/Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h |
Include |
#include "GPUDefragAllocator.h" |
Source |
/Engine/Source/Runtime/RHI/Private/GPUDefragAllocator.cpp |
FMemoryChunk * FindAdjacent
(
FMemoryChunk * UsedChunk,
bool bAnyChunkType
)
Defrag helper function. Checks if the specified allocation fits within the adjacent free chunk(s).
Returns 'UsedChunk' if it fits the criteria, otherwise nullptr
Parameter |
Description |
---|---|
UsedChunk |
Allocated chunk to check for a fit |
bAnyChunkType |
If false, only succeeds if 'UsedChunk' has a reallocation request and fits |