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§
Source§impl<'a> Debug for Instruction<'a>
impl<'a> Debug for Instruction<'a>
Source§impl<'a> Hash for Instruction<'a>
impl<'a> Hash for Instruction<'a>
Source§impl<'a> PartialEq for Instruction<'a>
impl<'a> PartialEq for Instruction<'a>
impl<'a> Eq for Instruction<'a>
impl<'a> StructuralPartialEq for Instruction<'a>
Auto Trait Implementations§
impl<'a> Freeze for Instruction<'a>
impl<'a> RefUnwindSafe for Instruction<'a>
impl<'a> Send for Instruction<'a>
impl<'a> Sync for Instruction<'a>
impl<'a> Unpin for Instruction<'a>
impl<'a> UnwindSafe for Instruction<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more