Struct rspirv::grammar::Instruction [−][src]
pub struct Instruction<'a> { pub opname: &'a str, pub opcode: Op, pub capabilities: &'a [Capability], pub extensions: &'a [&'a str], pub operands: &'a [LogicalOperand], }
Expand description
Grammar for a SPIR-V instruction.
Fields
opname: &'a str
Opname.
opcode: Op
Opcode.
capabilities: &'a [Capability]
Capabilities required for this instruction.
extensions: &'a [&'a str]
Extensions required for this instruction.
operands: &'a [LogicalOperand]
Logical operands for this instruction.
This includes result type id and result id.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.