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 * FindAdjacent
(
FMemoryChunk * UsedChunk,
bool bAnyChunkType
)
Remarks
Defrag helper function. Checks if the specified allocation fits within the adjacent free chunk(s). Returns 'UsedChunk' if it fits the criteria, otherwise nullptr
Parameters
| Name | Description |
|---|---|
| UsedChunk | Allocated chunk to check for a fit |
| bAnyChunkType | If false, only succeeds if 'UsedChunk' has a reallocation request and fits |