| FDynamicRHI::RHIAsyncReallocateTexture2D()
|
Module |
|
Header |
/Engine/Source/Runtime/RHI/Public/DynamicRHI.h |
Include |
#include "DynamicRHI.h" |
FTexture2DRHIRef RHIAsyncReallocateTexture2D
(
FRHITexture2D * Texture2D,
int32 NewMipCount,
int32 NewSizeX,
int32 NewSizeY,
FThreadSafeCounter * RequestStatus
)
Starts an asynchronous texture reallocation. It may complete immediately if the reallocation could be performed without any reshuffling of texture memory, or if there isn't enough memory. The specified status counter will be decremented by 1 when the reallocation is complete (success or failure).
Returns a new reference to the texture, which will represent the new mip count when the reallocation is complete. RHIFinalizeAsyncReallocateTexture2D() must be called to complete the reallocation.
New reference to the texture, or an invalid reference upon failureFlushType: Flush RHI Thread NP: Note that no RHI currently implements this as an async call, we should simplify the API.
Parameter |
Description |
---|---|
Texture2D |
Texture to reallocate |
NewMipCount |
New number of mip-levels |
NewSizeX |
New width, in pixels |
NewSizeY |
New height, in pixels |
RequestStatus |
Will be decremented by 1 when the reallocation is complete (success or failure). |