Language:
Discover
By Skill Level
By Category

FAsyncReallocationRequest

Choose your OS:

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

void *

 

GetNewBaseAddress()

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

Public function

int32

 

GetNewSize()

Returns the requested new memory size (in uint8s).

Public function

void *

 

GetOldBaseAddress()

Returns the original base address.

Public function

bool

 

HasCompleted()

Returns true if the request has been completed.

Public function

bool

 

HasStarted()

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

Public function

bool

 

IsAllocation()

Returns true if the request is for a new allocation.

Public function

bool

 

IsCanceled()

Returns true if the request has been canceled.

Public function

bool

 

IsReallocation()

Returns true if the request is for a reallocation.

References

Module

RHI

Header

Runtime/RHI/Public/GPUDefragAllocator.h