/// Creates a new `Instruction` instance.
Creates a new `Instruction` instance.
Creates a new ` Instruction ` instance .
pub fn new(
        opcode: spirv::Op,
        result_type: Option<Word>,
        result_id: Option<Word>,
        operands: Vec<Operand>,
    ) -> Self {
        Instruction {
            class: grammar::CoreInstructionTable::get(opcode),
            result_type,
            result_id,
            operands,
        }
    }
pub fn new ( opcode : spirv :: Op , result_type : Option < Word > , result_id : Option < Word > , operands : Vec < Operand > , ) -> Self { Instruction { class : grammar :: CoreInstructionTable :: get ( opcode ) , result_type , result_id , operands , } }
Creates a new `Instruction` instance.
Creates a new ` Instruction ` instance .
opcode
spirv::Op
result_type
Option<Word>
result_id
Option<Word>
operands
Vec<Operand>