Navigation
API > API/Runtime > API/Runtime/Engine
Base struct of an instruction value.
An instruction is a value in a well defined order of evaluation. Instructions have a parent block and are organized in a linked list: the Next field indicates the instruction that will execute immediately after this one. Since the material shader has multiple stages, the same instruction can belong to two different graphs of execution, which explains why all fields in this structure have a different possible value per stage.
Note: All fields in this struct are not expected to be set by the user when emitting an instruction, and are instead automatically populated by the builder.
| Name | FInstruction |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialIR.h |
| Include Path | #include "Materials/MaterialIR.h" |
Syntax
struct FInstruction : public MIR::FValue
Inheritance Hierarchy
- FValue → FInstruction
Derived Classes
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Block | FBlock * | This instruction parent block in all stages of execution. | Materials/MaterialIR.h | |
| Next | FInstruction * | The next instruction executing after this one in all stages of execution. | Materials/MaterialIR.h | |
| NumProcessedUsers | uint32 | The number of users processed during instruction graph linking in each stage of execution. | Materials/MaterialIR.h | |
| NumUsers | uint32 | How many users (i.e., dependencies) this instruction has in each stage of execution. | Materials/MaterialIR.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Returns the block in which the dependency with specified index should execute. | Materials/MaterialIR.h |