FGPUDefragAllocator::FindAdjacentToHole

Searches for an allocated chunk that would fit within the specified free chunk.

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 * FindAdjacentToHole
(
    FMemoryChunk * FreeChunk
)

Remarks

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.

Returns

Pointer to a suitable chunk, or nullptr

Parameters

Parameter

Description

FreeChunk

Free chunk we're trying to fill up

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