FAsyncReallocationRequest

Asynchronous reallocation request.

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h

Include

#include "GPUDefragAllocator.h"

Syntax

class FAsyncReallocationRequest

Remarks

Asynchronous reallocation request. Requests are created and deleted by the user, but it must stick around until the allocator is done with it. Requests may be fulfilled immediately, check HasCompleted() after making the request.

Constructors

Name Description

Public function

FAsyncReallocationRequest

(
    void* InCurrentBaseAddress,
    int32 InNewSize,
    FThreadSafeCounter* InRequestS...
)

Creates a new reallocation request.

Destructors

Name Description

Public function

~FAsyncReallocationRequest()

Destructor.

Functions

Name Description

Public function Const

void *

 

GetNewBaseAddress()

Returns the new base address, or nullptr if the request hasn't started yet.

Public function Const

int32

 

GetNewSize()

Returns the requested new memory size (in uint8s).

Public function Const

void *

 

GetOldBaseAddress()

Returns the original base address.

Public function Const

bool

 

HasCompleted()

Returns true if the request has been completed.

Public function Const

bool

 

HasStarted()

Returns true if the allocator has started processing the request (true for completed requests as well).

Public function Const

bool

 

IsAllocation()

Returns true if the request is for a new allocation.

Public function Const

bool

 

IsCanceled()

Returns true if the request has been canceled.

Public function Const

bool

 

IsReallocation()

Returns true if the request is for a reallocation.

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