Navigation
API > API/Runtime > API/Runtime/Engine
A constant value.
A constant represents a translation-time known scalar primitive value. Operations on constant values can be folded by the builder, that is they can be evaluated statically while the builder constructs the IR graph of an input material.
| Name | FConstant |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialIR.h |
| Include Path | #include "Materials/MaterialIR.h" |
Syntax
struct FConstant : public MIR::TValue< VK_Constant >
Inheritance Hierarchy
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Boolean | bool | Materials/MaterialIR.h | ||
| Double | TDouble | Materials/MaterialIR.h | ||
| FConstant | union MIR::FConstant | Materials/MaterialIR.h | ||
| Float | TFloat | Materials/MaterialIR.h | ||
| Integer | TInteger | Materials/MaterialIR.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T Get() |
Returns the constant value of given type T. The type must be bool, integral or floating point. | Materials/MaterialIR.h |