UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Texture2DStreamIn_DDC_AsyncReallocate.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4Texture2DStreamIn_DDC_AsyncReallocate.h: Load texture 2D mips from the DDC using async reallocate.
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
11
12#if WITH_EDITORONLY_DATA
13
15{
16public:
17
19
20protected:
21
22 // ****************************
23 // ******* Update Steps *******
24 // ****************************
25
26 // Create an intermediate bigger copy of the texture. (RenderThread)
27 void AsyncReallocate(const FContext& Context);
28 // Lock each new mips of the intermediate texture. (RenderThread)
29 void LockMips(const FContext& Context);
30 // Create load requests into each locked mips. (AsyncThread)
31 void LoadMips(const FContext& Context);
32 // Unlock the mips, apply the intermediate texture and clean up. (RenderThread)
33 void Finalize(const FContext& Context);
34
35 // ****************************
36 // ******* Cancel Steps *******
37 // ****************************
38
39 // Unlock the mips, cancel load requests and clean up. (RenderThread)
40 void Cancel(const FContext& Context);
41};
42
43#endif // WITH_EDITORONLY_DATA
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Texture2D.h:26