UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionFloatToUInt.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
9#include "MaterialExpressionFloatToUInt.generated.h"
10
11UENUM()
13{
14 Truncate UMETA(DisplayName="Truncate"),
15 Floor UMETA(DisplayName="Floor"),
16 Round UMETA(DisplayName="Round"),
17 Ceil UMETA(DisplayName="Ceil")
18};
19
22{
24
25public:
26
27 UPROPERTY()
29
30 UPROPERTY(EditAnywhere, Category=FloatToInt)
32
33 //~ Begin UMaterialExpression Interface
34#if WITH_EDITOR
35 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
36 virtual void Build(MIR::FEmitter& Emitter) override;
37 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
38 virtual EMaterialValueType GetInputValueType(int32 InputIndex) override;
39 virtual EMaterialValueType GetOutputValueType(int32 OutputIndex) override;
40#endif
41 //~ End UMaterialExpression Interface
42};
43
46{
48
49public:
50
51 UPROPERTY()
53
54 //~ Begin UMaterialExpression Interface
55#if WITH_EDITOR
56 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
57 virtual void Build(MIR::FEmitter& Emitter) override;
58 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
59 virtual EMaterialValueType GetInputValueType(int32 InputIndex) override;
60 virtual EMaterialValueType GetOutputValueType(int32 OutputIndex) override;
61#endif
62 //~ End UMaterialExpression Interface
63};
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
EFloatToIntMode
Definition MaterialExpressionFloatToUInt.h:13
EMaterialValueType
Definition MaterialValueType.h:15
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
#define UENUM(...)
Definition ObjectMacros.h:749
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition MaterialCompiler.h:109
Definition Array.h:670
Definition MaterialExpressionFloatToUInt.h:22
Definition MaterialExpressionFloatToUInt.h:46
Definition MaterialExpression.h:150
Definition MaterialExpressionIO.h:23