Navigation
API > API/Runtime > API/Runtime/Engine
A branch instruction.
This instruction evaluates to one or another argument based on whether a third boolean condition argument is true or false. The builder will automatically place as many instructions as possible in the true/false inner blocks whilst respecting dependency requirements. This is done in an effort to avoid the unnecessary computation of the input value that was not selected by the condition.
| Name | FBranch |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialIR.h |
| Include Path | #include "Materials/MaterialIR.h" |
Syntax
struct FBranch : public MIR::TInstruction< VK_Branch, 3 >
Inheritance Hierarchy
- FValue → FInstruction → TInstruction → FBranch
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ConditionArg | FValue * | The boolean condition argument used to forward the "true" or "false" argument. | Materials/MaterialIR.h | |
| FalseArg | FValue * | Value this branch evaluates to when the condition is false. | Materials/MaterialIR.h | |
| FalseBlock | TArrayView< FBlock > | The inner block (in each module entry point) the subgraph evaluating `FalseArg_ should be placed in. | Materials/MaterialIR.h | |
| TrueArg | FValue * | Value this branch evaluates to when the condition is true. | Materials/MaterialIR.h | |
| TrueBlock | TArrayView< FBlock > | The inner block (in each module entry point) the subgraph evaluating `TrueArg_ should be placed in. | Materials/MaterialIR.h |