UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Texture2DStreamIn_DDC_AsyncCreate.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4Texture2DStreamIn_DDC_AsyncCreate.h: Load texture 2D mips from the DDC using async create.
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 DDC requests for each mips. (AsyncThread)
27 void AsyncDDC(const FContext& Context);
28 // Poll DDC requests completion for each mips. (AsyncThread)
29 void PollDDC(const FContext& Context);
30 // Allocate the MipData (AsyncThread)
31 void AllocateAndLoadMips(const FContext& Context);
32 // Create load requests into each locked mips. (AsyncThread)
33 void AsyncCreate(const FContext& Context);
34 // Apply the intermediate texture and cleanup. (RenderThread)
35 void Finalize(const FContext& Context);
36
37 // ****************************
38 // ******* Cancel Steps *******
39 // ****************************
40
41 // Cancel the update. (RenderThread)
42 void Cancel(const FContext& Context);
43};
44
45#endif // WITH_EDITORONLY_DATA
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Texture2D.h:26