FGPUDefragAllocator::AllocateChunk

Marks the specified chunk as 'allocated' and updates tracking variables.

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 * AllocateChunk
(
    FMemoryChunk * FreeChunk,
    int64 AllocationSize,
    bool bAsync,
    bool bDoValidation
)

Remarks

Marks the specified chunk as 'allocated' and updates tracking variables. Splits the chunk if only a portion of it is allocated.

Marks the specified chunk as 'allocated' and updates tracking variables. Splits the chunk if only a portion of it is allocated.

Returns

The memory chunk that was allocated (the original chunk could've been split).

Parameters

Parameter

Description

FreeChunk

Chunk to allocate

AllocationSize

Number of uint8s to allocate

bAsync

If true, allows allocating from relocating chunks and maint32ains the free-list sort order.

FreeChunk

Chunk to allocate

AllocationSize

Number of bytes to allocate

bAsync

If true, allows allocating from relocating chunks and maintains the free-list sort order.

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