Navigation
API > API/Runtime > API/Runtime/VulkanRHI > API/Runtime/VulkanRHI/FVulkanDynamicRHI
- FDynamicRHI::RHIAsyncReallocateTexture2D()
- FVulkanDynamicRHI::RHIAsyncReallocateTexture2D()
References
| Module | VulkanRHI |
| Header | /Engine/Source/Runtime/VulkanRHI/Public/VulkanDynamicRHI.h |
| Include | #include "VulkanDynamicRHI.h" |
| Source | /Engine/Source/Runtime/VulkanRHI/Private/VulkanTexture.cpp |
virtual 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.