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>,
}

Data representation of a SPIR-V instruction.

Fields

The class (grammar specification) of this instruction.

Result type id.

Result id.

Operands.

Methods

impl Instruction
[src]

Creates a new Instruction instance.

Trait Implementations

impl Assemble for Instruction
[src]

Assembles the current object and returns the binary code.

impl Disassemble for Instruction
[src]

Disassembles the current object and returns the assembly code.

impl Debug for Instruction
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Instruction

impl Sync for Instruction