FAsyncReallocationRequest

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.

References

Module

RHI

Header

Runtime/RHI/Public/GPUDefragAllocator.h