UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Texture2DStreamIn_DDC.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
/*=============================================================================
4
Texture2DStreamIn_DDC.h: Stream in helper for 2D textures loading DDC files.
5
=============================================================================*/
6
7
#pragma once
8
9
#include "
CoreMinimal.h
"
10
#include "
Memory/SharedBuffer.h
"
11
#include "
Texture2DStreamIn.h
"
12
#include "
UObject/WeakObjectPtr.h
"
13
14
#if WITH_EDITORONLY_DATA
15
#include "DerivedDataRequestOwner.h"
16
17
extern
int32
GStreamingUseAsyncRequestsForDDC
;
18
19
class
FTexture2DStreamIn_DDC
:
public
FTexture2DStreamIn
20
{
21
public
:
22
23
FTexture2DStreamIn_DDC
(
UTexture2D
*
InTexture
);
24
~FTexture2DStreamIn_DDC
();
25
26
protected
:
27
28
struct
FMipRequestStatus
29
{
30
FSharedBuffer
Buffer
;
31
bool
bRequestIssued
=
false
;
32
};
33
34
TArray<FMipRequestStatus, TInlineAllocator<MAX_TEXTURE_MIP_COUNT>
>
DDCMipRequestStatus
;
35
UE::DerivedData::FRequestOwner
DDCRequestOwner
;
36
TWeakObjectPtr<UTexture2D>
Texture
;
37
38
// ****************************
39
// ********* Helpers **********
40
// ****************************
41
42
// Create DDC load requests
43
void
DoCreateAsyncDDCRequests
(
const
FContext&
Context
);
44
45
// Create DDC load requests
46
bool
DoPoolDDCRequests
(
const
FContext&
Context
);
47
48
// Load from DDC into MipData
49
void
DoLoadNewMipsFromDDC
(
const
FContext&
Context
);
50
};
51
52
#endif
// WITH_EDITORONLY_DATA
CoreMinimal.h
int32
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition
Platform.h:1125
SharedBuffer.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EDatasmithElementType::Texture
@ Texture
EPixelFormatCapabilities::Buffer
@ Buffer
Texture2DStreamIn.h
EVulkanSyncPointType::Context
@ Context
WeakObjectPtr.h
FSharedBuffer
Definition
SharedBuffer.h:341
FTexture2DStreamIn
Definition
Texture2DStreamIn.h:14
TArray
Definition
Array.h:670
UTexture2D
Definition
Texture2D.h:26
TWeakObjectPtr
Definition
WeakObjectPtrTemplates.h:25
Engine
Source
Runtime
Engine
Private
Streaming
Texture2DStreamIn_DDC.h
Generated by
1.9.8