UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionNeuralPostProcessNode.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
8#pragma once
9
10#include "CoreMinimal.h"
13#include "MaterialExpressionNeuralPostProcessNode.generated.h"
14
17
18UENUM()
20{
22 NIT_TextureIndex UMETA(DisplayName = "Texture Index"),
23
25 NIT_BufferIndex UMETA(DisplayName = "Buffer Index"),
26
27};
28
31{
33
34
39 UPROPERTY(meta = (RequiredInput = "false"))
40 FExpressionInput Coordinates;
41
43 UPROPERTY()
44 FExpressionInput Input0;
45
49 UPROPERTY(meta = (RequiredInput = "false"))
51
53 UPROPERTY(EditAnywhere, CateGory = "Default", meta = (DisplayName = "Index Type"))
54 TEnumAsByte<ENeuralIndexType> NeuralIndexType;
55
56#if WITH_EDITOR
57
58 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
59 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
60 virtual EMaterialValueType GetInputValueType(int32 InputIndex) override;
61
62#endif // WITH_EDITOR
63
64 //~ Begin UMaterialExpressionCustomOutput Interface
65 virtual int32 GetNumOutputs() const override;
66 virtual FString GetFunctionName() const override;
67 //~ End UMaterialExpressionCustomOutput Interface
68};
69
70
71// The input node that holds the output from the neural network to the post process material
74{
76
77
82 UPROPERTY(meta = (RequiredInput = "false"))
83 FExpressionInput Coordinates;
84
88 UPROPERTY(EditAnywhere, Category = "Default", meta = (DisplayName = "Index Type"))
89 TEnumAsByte<ENeuralIndexType> NeuralIndexType;
90
91#if WITH_EDITOR
92 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
93 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
94 virtual EMaterialValueType GetInputValueType(int32 InputIndex) override;
95
96#endif // WITH_EDITOR
97
98};
99
100
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
EMaterialSamplerType
Definition EngineTypes.h:936
ENeuralIndexType
Definition MaterialExpressionNeuralPostProcessNode.h:20
@ UMETA
Definition MaterialExpressionNeuralPostProcessNode.h:22
EMaterialValueType
Definition MaterialValueType.h:15
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
#define UENUM(...)
Definition ObjectMacros.h:749
Definition MaterialCompiler.h:109
Definition Array.h:670
Definition EnumAsByte.h:22
Definition MaterialExpressionCustomOutput.h:15
Definition MaterialExpressionNeuralPostProcessNode.h:31
Definition MaterialExpressionNeuralPostProcessNode.h:74
Definition MaterialExpression.h:150
int
Definition TestServer.py:515
Definition MaterialExpressionIO.h:23
Definition UnrealType.h:6865