Navigation
API > API/Runtime > API/Runtime/RHI
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.
| Name | FAsyncReallocationRequest |
| Type | class |
| Header File | /Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h |
| Include Path | #include "GPUDefragAllocator.h" |
Syntax
class FAsyncReallocationRequest
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAsyncReallocationRequest
(
const FAsyncReallocationRequest& Other |
Hidden on purpose since outside usage isn't necessarily thread-safe. | GPUDefragAllocator.h | |
FAsyncReallocationRequest
(
void* InCurrentBaseAddress, |
Creates a new reallocation request. | GPUDefragAllocator.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FAsyncReallocationRequest() |
Destructor. | GPUDefragAllocator.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsCanceled | uint32 | True if the request has been canceled. | GPUDefragAllocator.h | |
| ExternalRequestStatus | FThreadSafeCounter * | External counter that will be decremented by one when the request has been completed. | GPUDefragAllocator.h | |
| int32ernalRequestStatus | FThreadSafeCounter | Thread-safe counter that will be decremented by one when the request has been completed. | GPUDefragAllocator.h | |
| MemoryChunk | FGPUDefragAllocator::FMemoryChunk * | Corresponding memory chunk. | GPUDefragAllocator.h | |
| NewAddress | void * | New base address, or nullptr if the request hasn't started yet. | GPUDefragAllocator.h | |
| NewSize | int32 | Requested new memory size, in uint8s. | GPUDefragAllocator.h | |
| OldAddress | void * | Original base address. | GPUDefragAllocator.h | |
| OldSize | int32 | Original memory size, in uint8s. Set by AsyncReallocate(). | GPUDefragAllocator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void * GetNewBaseAddress() |
Returns the new base address, or nullptr if the request hasn't started yet. | GPUDefragAllocator.h | |
int32 GetNewSize() |
Returns the requested new memory size (in uint8s). | GPUDefragAllocator.h | |
void * GetOldBaseAddress() |
Returns the original base address. | GPUDefragAllocator.h | |
bool HasCompleted() |
Returns true if the request has been completed. | GPUDefragAllocator.h | |
bool HasStarted() |
Returns true if the allocator has started processing the request (true for completed requests as well). | GPUDefragAllocator.h | |
bool IsAllocation() |
Returns true if the request is for a new allocation. | GPUDefragAllocator.h | |
bool IsCanceled() |
Returns true if the request has been canceled. | GPUDefragAllocator.h | |
bool IsReallocation() |
Returns true if the request is for a reallocation. | GPUDefragAllocator.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void operator=
(
const FAsyncReallocationRequest& Other |
GPUDefragAllocator.h |