UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionDataDrivenShaderPlatformInfoSwitch.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3
4#pragma once
5
6#include "CoreMinimal.h"
9#include "MaterialValueType.h"
11#include "RHIFeatureLevel.h"
12#include "MaterialExpressionDataDrivenShaderPlatformInfoSwitch.generated.h"
13
15
16UENUM()
18{
19 COND_True UMETA(DisplayName = "Property must be true"),
20 COND_False UMETA(DisplayName = "Property must be false"),
21};
22
23USTRUCT()
34
37{
39 UPROPERTY()
40 FExpressionInput InputTrue;
41
42 UPROPERTY()
43 FExpressionInput InputFalse;
44
45 UPROPERTY(EditAnywhere, Category = DataDrivenShaderPlatformInfoInput)
47
48 UFUNCTION()
49 TArray<FString> GetNameOptions() const;
50
51 UPROPERTY()
52 uint32 bContainsInvalidProperty : 1;
53
54 //~ Begin UObject Interface
55 virtual void PostLoad() override;
56#if WITH_EDITOR
57 virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
58#endif
59 //~ End UObject Interface
60 //
61#if WITH_EDITOR
63
64 //~ Begin UMaterialExpression Interface
65 virtual void Build(MIR::FEmitter& Emitter) override;
66 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
67 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
68 virtual bool IsInputConnectionRequired(int32 InputIndex) const override;
69 virtual FName GetInputName(int32 InputIndex) const override;
70 virtual bool IsResultMaterialAttributes(int32 OutputIndex) override;
71 virtual EMaterialValueType GetInputValueType(int32 InputIndex) override { return MCT_Unknown; }
72 virtual EMaterialValueType GetOutputValueType(int32 OutputIndex) override { return MCT_Unknown; }
73#endif // WITH_EDITOR
74 //~ End UMaterialExpression Interface
75};
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
EDataDrivenShaderPlatformInfoCondition
Definition MaterialExpressionDataDrivenShaderPlatformInfoSwitch.h:18
@ UMETA
Definition MaterialExpressionDataDrivenShaderPlatformInfoSwitch.h:19
EMaterialValueType
Definition MaterialValueType.h:15
@ MCT_Unknown
Definition MaterialValueType.h:36
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
EShaderPlatform
Definition RHIShaderPlatform.h:11
uint16_t uint16
Definition binka_ue_file_header.h:7
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition MaterialCompiler.h:109
Definition NameTypes.h:617
Definition Array.h:670
Definition EnumAsByte.h:22
Definition MaterialExpressionDataDrivenShaderPlatformInfoSwitch.h:37
Definition MaterialExpression.h:150
Definition MaterialExpressionDataDrivenShaderPlatformInfoSwitch.h:25
Definition MaterialExpressionIO.h:23
Definition UnrealType.h:6865