public sealed class SpirvInstructionOne SPIR-V instruction, kept in the shape the spec describes: an opcode, an optional result type, an optional result id, and operands. Holding it this way rather than as raw words means the same object both encodes to the binary and renders as the assembly listing, so the listing can never drift from what was actually emitted.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (5)
public SpirvOp Oppublic uint? ResultTypepublic uint? Resultpublic IReadOnlyList<SpirvOperand> Operandspublic int WordCount
Methods (3)
public SpirvInstruction(SpirvOp op, uint? resultType, uint? result, params SpirvOperand[] operands)One SPIR-V instruction, kept in the shape the spec describes: an opcode, an optional result type, an optional result id, and operands. Holding it this way rather than as raw words means the same object both encodes to the binary and renders as the assembly listing, so the listing can never drift from what was actually emitted.
public void Encode(List<uint> words)public override string ToString()The assembly form, in the same shape spirv-dis prints.
Used by (2)
- SpirvEmitterVixen.Raven
- SpirvModuleVixen.Raven