UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DataflowImage.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "ImageCore.h"
6
7#include "DataflowImage.generated.h"
8
9UENUM()
11{
12 Resolution16 = 16 UMETA(DisplayName = "16 x 16"),
13 Resolution32 = 32 UMETA(DisplayName = "32 x 32"),
14 Resolution64 = 64 UMETA(DisplayName = "64 x 64"),
15 Resolution128 = 128 UMETA(DisplayName = "128 x 128"),
16 Resolution256 = 256 UMETA(DisplayName = "256 x 256"),
17 Resolution512 = 512 UMETA(DisplayName = "512 x 512"),
18 Resolution1024 = 1024 UMETA(DisplayName = "1024 x 1024"),
19 Resolution2048 = 2048 UMETA(DisplayName = "2048 x 2048"),
20 Resolution4096 = 4096 UMETA(DisplayName = "4096 x 4096"),
21 Resolution8192 = 8192 UMETA(DisplayName = "8192 x 8192")
22};
23
24UENUM()
26{
27 Red = 0 UMETA(DisplayName = "Red Channel"),
28 Green = 1 UMETA(DisplayName = "Green Channel"),
29 Blue = 2 UMETA(DisplayName = "Blue Channel"),
30 Alpha = 3 UMETA(DisplayName = "Alpha Channel"),
31};
32
37USTRUCT()
39{
41
42 DATAFLOWCORE_API int32 GetWidth() const;
43 DATAFLOWCORE_API int32 GetHeight() const;
44
46 DATAFLOWCORE_API const FImage& GetImage() const;
47
49 DATAFLOWCORE_API void CreateR32F(EDataflowImageResolution Resolution);
50
52 DATAFLOWCORE_API void CreateR32F(int32 Width, int32 Height);
53
55 DATAFLOWCORE_API void CreateRGBA32F(EDataflowImageResolution Resolution);
56
58 DATAFLOWCORE_API void CreateRGBA32F(int32 Width, int32 Height);
59
61 DATAFLOWCORE_API void CreateFromColor(EDataflowImageResolution Resolution, FLinearColor Color);
62
64 DATAFLOWCORE_API void CreateFromColor(int32 Width, int32 Height, FLinearColor Color);
65
71 DATAFLOWCORE_API bool CopyRGBAPixels(TArrayView64<FVector4f> Pixels);
72
77 DATAFLOWCORE_API void ConvertToRGBA32F();
78
80
85 DATAFLOWCORE_API void ReadChannel(EDataflowImageChannel Channel, FDataflowImage& OutImage) const;
86
92 DATAFLOWCORE_API void WriteChannel(EDataflowImageChannel Channel, const FDataflowImage& SrcImage);
93
94private:
96};
97
98template<> struct TStructOpsTypeTraits<FDataflowImage> : public TStructOpsTypeTraitsBase2<FDataflowImage>
99{
100 enum
101 {
103 };
104};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EDataflowImageChannel
Definition DataflowImage.h:26
EDataflowImageResolution
Definition DataflowImage.h:11
#define UMETA(...)
Definition ObjectMacros.h:747
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
Definition Archive.h:1208
Definition DataflowImage.h:39
Definition ImageCore.h:416
Definition Color.h:48
Definition StructOpsTypeTraits.h:11
@ WithSerializer
Definition StructOpsTypeTraits.h:23
Definition StructOpsTypeTraits.h:46