engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
FAsyncReallocationRequest类 参考

Asynchronous reallocation request. 更多...

#include <GPUDefragAllocator.h>

Public 成员函数

 FAsyncReallocationRequest (void *InCurrentBaseAddress, int32 InNewSize, FThreadSafeCounter *InRequestStatus)
 Creates a new reallocation request. 更多...
 
void * GetNewBaseAddress () const
 Returns the new base address, or nullptr if the request hasn't started yet.
 
int32 GetNewSize () const
 Returns the requested new memory size (in uint8s).
 
void * GetOldBaseAddress () const
 Returns the original base address.
 
bool HasCompleted () const
 Returns true if the request has been completed.
 
bool HasStarted () const
 Returns true if the allocator has started processing the request (true for completed requests as well).
 
bool IsAllocation () const
 Returns true if the request is for a new allocation.
 
bool IsCanceled () const
 Returns true if the request has been canceled.
 
bool IsReallocation () const
 Returns true if the request is for a reallocation.
 
 ~FAsyncReallocationRequest ()
 Destructor.
 

友元

class FGPUDefragAllocator
 

详细描述

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.

构造及析构函数说明

◆ FAsyncReallocationRequest()

FAsyncReallocationRequest::FAsyncReallocationRequest ( void *  InCurrentBaseAddress,
int32  InNewSize,
FThreadSafeCounter *  InRequestStatus 
)
inline

Creates a new reallocation request.

参数
InCurrentBaseAddressCurrent base address
InNewSizeRequested new size, in uint8s
InRequestStatusWill be decremented by one when the request has been completed. Can be nullptr.

该类的文档由以下文件生成: