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