FGPUDefragAllocator::GetLargestAvailableAllocation

Scans the free chunks and returns the largest size you can allocate.

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

int32 GetLargestAvailableAllocation
(
    int32 * OutNumFreeChunks
)

Remarks

Scans the free chunks and returns the largest size you can allocate.

Returns

The largest size of all free chunks.

Parameters

Parameter

Description

OutNumFreeChunks

Upon return, contains the total number of free chunks. May be nullptr.

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