FDynamicRHI::RHIAsyncReallocateTexture2D

Starts an asynchronous texture reallocation.

Windows
MacOS
Linux

Override Hierarchy

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/DynamicRHI.h

Include

#include "DynamicRHI.h"

Syntax

FTexture2DRHIRef RHIAsyncReallocateTexture2D
(
    FRHITexture2D * Texture2D,
    int32 NewMipCount,
    int32 NewSizeX,
    int32 NewSizeY,
    FThreadSafeCounter * RequestStatus
)

Remarks

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.

that no RHI currently implements this as an async call, we should simplify the API.

Returns

  • New reference to the texture, or an invalid reference upon failureFlushType: Flush RHI Thread NP:

Parameters

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).

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss