UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Texture2DStreamIn_DerivedData.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
7#include "Texture2DStreamIn.h"
8
9namespace UE
10{
11
13{
14protected:
16
19
22
24 void DoEndIoRequests(const FContext& Context);
25
27 void DoCancelIoRequests();
28
30 void Abort() final;
31
32private:
34 FManualResetEvent ResponseComplete;
35 bool bHighPriority;
36};
37
39{
40public:
42
43protected:
44 // Allocate mips and begin the I/O request for each mip. (AsyncThread)
46 // Poll the I/O requests. (AsyncThread)
47 void PollIoRequests(const FContext& Context);
48 // Wait for the I/O requests to complete and clean them up. (AsyncThread)
49 void EndIoRequests(const FContext& Context);
50 // Async create an intermediate texture from the loaded mips. (AsyncThread)
51 void AsyncCreate(const FContext& Context);
52 // Apply the intermediate texture and clean up. (RenderThread)
53 void Finalize(const FContext& Context);
54 // Cancel the update. (RenderThread)
55 void Cancel(const FContext& Context);
56};
57
59{
60public:
62
63protected:
64 // Create an intermediate bigger copy of the texture. (RenderThread)
65 void AsyncReallocate(const FContext& Context);
66 // Lock each new mips of the intermediate texture. (RenderThread)
67 void LockMips(const FContext& Context);
68 // Create load requests into each locked mips. (AsyncThread)
69 void LoadMips(const FContext& Context);
70 // Unlock the mips, apply the intermediate texture and clean up. (RenderThread)
71 void Finalize(const FContext& Context);
72 // Unlock the mips, cancel load requests and clean up. (RenderThread)
73 void Cancel(const FContext& Context);
74};
75
77{
78public:
80
81protected:
82 // Validate the filename and bulk data, then lock new mips. (RenderThread)
83 void LockMips(const FContext& Context);
84 // Create load requests into each locked mips. (AsyncThread)
85 void LoadMips(const FContext& Context);
86 // Clear the IO requests and call Finalize. (AsyncThread)
87 void PostLoadMips(const FContext& Context);
88 // Apply the intermediate texture and cleanup. (RenderThread)
89 void Finalize(const FContext& Context);
90 // Unlock the mips, cancel load requests and clean up. (RenderThread)
91 void Cancel(const FContext& Context);
92};
93
94} // UE
Definition Texture2DStreamIn.h:14
Definition DerivedData.h:242
Definition ManualResetEvent.h:15
Definition Texture2DStreamIn_DerivedData.h:39
void AllocateMipsAndBeginIoRequests(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:117
void AsyncCreate(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:158
void PollIoRequests(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:130
void EndIoRequests(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:147
Definition Texture2DStreamIn_DerivedData.h:59
void AsyncReallocate(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:202
void LoadMips(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:224
void LockMips(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:213
Definition Texture2DStreamIn_DerivedData.h:77
void LoadMips(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:278
void PostLoadMips(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:288
void LockMips(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:267
Definition Texture2DStreamIn_DerivedData.h:13
void DoEndIoRequests(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:92
void DoBeginIoRequests(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:22
void DoCancelIoRequests()
Definition Texture2DStreamIn_DerivedData.cpp:97
void Abort() final
Definition Texture2DStreamIn_DerivedData.cpp:102
bool DoPollIoRequests(const FContext &Context)
Definition Texture2DStreamIn_DerivedData.cpp:87
Definition Texture2D.h:26
Definition AdvancedWidgetsModule.cpp:13
Definition Texture2DUpdate.h:23