Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FGPUDefragAllocator
Description
Searches for an allocated chunk that would fit within the specified free chunk. The allocated chunk must be adjacent to a free chunk and have a larger base address than 'FreeChunk'. Starts searching from the end of the texture pool.
| Name | FindAdjacentToHole |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h |
| Include Path | #include "GPUDefragAllocator.h" |
| Source | /Engine/Source/Runtime/RHI/Private/GPUDefragAllocator.cpp |
FMemoryChunk * FindAdjacentToHole
(
FMemoryChunk * FreeChunk
)
Pointer to a suitable chunk, or nullptr
Parameters
| Name | Remarks |
|---|---|
| FreeChunk | Free chunk we're trying to fill up |