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
/*=============================================================================
4
Texture2DStreamIn_DDC_AsyncReallocate.h: Load texture 2D mips from the DDC using async reallocate.
5
=============================================================================*/
6
7
#pragma once
8
9
#include "
CoreMinimal.h
"
10
#include "
Texture2DStreamIn_DDC.h
"
11
12
#if WITH_EDITORONLY_DATA
13
14
class
FTexture2DStreamIn_DDC_AsyncReallocate
:
public
FTexture2DStreamIn_DDC
15
{
16
public
:
17
18
FTexture2DStreamIn_DDC_AsyncReallocate
(
UTexture2D
*
InTexture
);
19
20
protected
:
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
EAsyncPackageLoadingState2::Finalize
@ Finalize
EAsyncTaskNotificationPromptAction::Cancel
@ Cancel
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
Texture2DStreamIn_DDC.h
EVulkanSyncPointType::Context
@ Context
UTexture2D
Definition
Texture2D.h:26
Engine
Source
Runtime
Engine
Private
Streaming
Texture2DStreamIn_DDC_AsyncReallocate.h
Generated by
1.9.8