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