Enum VfxEval.OpCode ​
Namespace: ValveResourceFormat.Serialization.VfxEval
Assembly: ValveResourceFormat.dll
Instructions of compiled dynamic expressions, each followed by its operands.
csharp
public enum VfxEval.OpCode : byteFields ​
| Name | Value | Description |
|---|---|---|
Return | 0 | Ends the expression, its result on the stack. |
Nop | 1 | Does nothing. |
Jump | 2 | Continues at the ushort offset that follows. |
Call | 3 | Calls the subroutine at the ushort offset that follows. |
Branch | 4 | Pops a condition and continues at the first ushort offset that follows when it is nonzero, else at the second. |
Ret | 5 | Returns from a subroutine. |
Function | 6 | Calls the VfxEval.ExpressionFunction whose ushort index follows. |
Float | 7 | Pushes the float that follows into every component. |
Store | 8 | Pops a value into the local whose byte index follows. |
Load | 9 | Pushes the local whose byte index follows. |
Or | 10 | Pops two values and pushes 1 per component where either is nonzero, else 0. |
And | 11 | Pops two values and pushes 1 per component where both are nonzero, else 0. |
Not | 12 | Pops a value and pushes 1 per component where it is zero, else 0. |
Equal | 13 | Pops two values and pushes 1 per equal component, else 0. |
NotEqual | 14 | Pops two values and pushes 1 per differing component, else 0. |
Greater | 15 | Pops b, then a, and pushes 1 per component where a > b, else 0. |
GreaterOrEqual | 16 | Pops b, then a, and pushes 1 per component where a >= b, else 0. |
Less | 17 | Pops b, then a, and pushes 1 per component where a < b, else 0. |
LessOrEqual | 18 | Pops b, then a, and pushes 1 per component where a <= b, else 0. |
Add | 19 | Pops b, then a, and pushes a + b. |
Subtract | 20 | Pops b, then a, and pushes a - b. |
Multiply | 21 | Pops b, then a, and pushes a * b. |
Divide | 22 | Pops b, then a, and pushes a / b. |
Modulo | 23 | Pops b, then a, and pushes a % b. |
Negate | 24 | Pops a value and pushes its negation. |
Attribute | 25 | Pushes the render attribute whose uint token follows. |
Feature | 26 | Pushes the feature whose byte index follows. |
Feature2 | 27 | Pushes the value at the byte index that follows in the second feature table. |
Feature3 | 28 | Pushes the value at the byte index that follows in the third feature table, not constant. |
MaterialParam | 29 | Pushes the material parameter whose uint token follows. |
Swizzle | 30 | Pops a value and pushes the components the byte that follows selects, two bits each. |
Exists | 31 | Pushes 1 when the render attribute whose uint token follows is set, else 0. |
MaterialParamByIndex | 32 | Pushes the material parameter whose int index follows. |
Float4 | 33 | Pushes the four floats that follow. |
SystemValue | 34 | Pushes the system value whose byte index follows. |

