Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- FValue
- FInstruction
- TInstruction
- FBinaryOperator
- FBranch
- FCast
- FDimensional
- TDimensional
- FSetMaterialOutput
- FSubscript
- FTextureSample
- TValue
- FConstant
- FExternalInput
- FMaterialParameter
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialIR.h |
| Include | #include "Materials/MaterialIR.h" |
Syntax
struct FValue
Variables
| Type | Name | Description | |
|---|---|---|---|
| EValueFlags: 8{} | Flags | ||
| EValueKind: 8{} | Kind | ||
| FTypePtr | Type |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const T * | As () |
Tries to cast this value to specified type T and returns the casted pointer, if possible (nullptr otherwise). | |
| T * | As () |
Tries to cast this value to specified type T and returns the casted pointer, if possible (nullptr otherwise). | |
| const FInstruction * | Tries to cast this value to an instruction and returns it (nullptr otherwise). | ||
| FInstruction * | Tries to cast this value to an instruction and returns it (nullptr otherwise). | ||
| bool | Returns whether this value exactly equals Other. | ||
| uint32 | Returns the size in bytes of this value instance. | ||
| UTexture * | GetTexture () |
Returns this value's textures if it has one (nullptr otherwise). | |
| TArrayView< const FValue * > | GetUses () |
Returns the array of this value's uses. An use is another value referenced by this one (e.g. the operands of a binary expression). | |
| TArrayView< FValue * > | GetUses () |
Returns the array of this value's uses. An use is another value referenced by this one (e.g. the operands of a binary expression). | |
| bool | IsA
(
EValueKind InKind |
Returns whether this value is of specified kind. | |
| bool | IsExactlyOne () |
Returns whether this value is arithmetic and exactly one. | |
| bool | Returns whether this value is arithmetic and exactly zero. | ||
| bool | IsFalse () |
Returns whether this value is a constant boolean with value false. | |
| bool | IsNearlyOne () |
Returns whether this value is arithmetic and approximately one. | |
| bool | IsNearlyZero () |
Returns whether this value is arithmetic and approximately zero. | |
| bool | IsScalar () |
Returns whether this value is a scalar (its type is Primitive with exactly 1 component). | |
| bool | IsTrue () |
Returns whether this value is a constant boolean with value true. | |
| bool | IsVector () |
Returns whether this value is a vector (tis type is Primitive with 1-4 rows and exactly 1 column). | |
| void | SetFlags
(
EValueFlags InFlags |
Sets the specified value flags. |