Vixen
02b45cc4
csharp
public readonly record struct VfxOperationRow

One initializer or updater, as a build writes it.

Read the guide page for this →

Remarks

Generic in the opcode, which is what keeps this file from growing with the instruction set. Every operation is an opcode, a salt, two parameter vectors and a custom-attribute slot — VfxOperation is that and nothing else — so a new opcode is a new value in an enum and changes nothing here. That is the same property the compiled form was given for the sake of the GPU backend, paying off a second time.

Fields and properties (5)

  • public VfxOpcode Opcode

    What it does.

  • public uint Salt

    Which randomness it draws on.

  • public Vector4 A

    Its first parameter vector.

  • public Vector4 B

    Its second, for the operations that take two.

  • public int Slot

    Which custom attribute it addresses, for the operations that address one.

Methods (3)

  • public VfxOperationRow()

    An empty operation, for the serializer.

  • public VfxOperation ToOperation()

    This row as the runtime operation.

  • public static VfxOperationRow From(in VfxOperation operation)

    One runtime operation as a row.

Used by (4)

  • TypeRegistrationVixen.Rendering
  • VfxEffectContentVixen.Rendering
  • Vixen_Rendering_Vfx_VfxEffectContentSerializerVixen.Rendering
  • Vixen_Rendering_Vfx_VfxOperationRowSerializerVixen.Rendering