public static class VfxOpcodesWhat each opcode reads and writes, which is how a graph's storage is worked out.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The declaration is here rather than on the operation because it is a property of the opcode, and putting it anywhere else would let a graph claim to touch something it does not — which is exactly the disagreement the whole "allocate only what is used" idea depends on never happening.
Methods (6)
public static VfxAttribute Reads(VfxOpcode opcode)The attributes an opcode reads.
public static VfxAttribute Writes(VfxOpcode opcode)The attributes an opcode writes.
public static bool IsUpdater(VfxOpcode opcode)Whether an opcode advances a particle by a step, rather than giving it a value.
public static bool IsCustom(VfxOpcode opcode)Whether an opcode writes a custom attribute rather than a built-in one.
public static bool NeedsSalt(VfxOpcode opcode)Whether an opcode needs a salt of its own, so two of them draw unrelated numbers.
public static bool IsRandom(VfxOpcode opcode)Whether an opcode draws a random value per particle, and so hashes its identifier.
Used by (2)
- VfxCompiledGraphVixen.Vfx
- VfxShaderEmitterVixen.Vfx