Struct rspirv::mr::Instruction
[−]
[src]
pub struct Instruction { pub class: &'static Instruction<'static>, pub result_type: Option<Word>, pub result_id: Option<Word>, pub operands: Vec<Operand>, }
Memory representation of a SPIR-V instruction.
Fields
class: &'static Instruction<'static>
The class (grammar specification) of this instruction.
result_type: Option<Word>
Result type id.
result_id: Option<Word>
Result id.
operands: Vec<Operand>
Operands.
Methods
impl Instruction
[src]
fn new(opcode: Op,
result_type: Option<Word>,
result_id: Option<Word>,
operands: Vec<Operand>)
-> Instruction
result_type: Option<Word>,
result_id: Option<Word>,
operands: Vec<Operand>)
-> Instruction
Creates a new Instruction
instance.
Trait Implementations
impl Disassemble for Instruction
[src]
fn disassemble(&self) -> String
Disassembles the current object and returns the assembly code.