pub struct BaseInstruction<'a, Op>{
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 strOpname.
opcode: OpOpcode.
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, Op> Debug for BaseInstruction<'a, Op>
impl<'a, Op> Debug for BaseInstruction<'a, Op>
Source§impl<'a, Op> Hash for BaseInstruction<'a, Op>
impl<'a, Op> Hash for BaseInstruction<'a, Op>
Source§impl<'a, Op> PartialEq for BaseInstruction<'a, Op>
impl<'a, Op> PartialEq for BaseInstruction<'a, Op>
Source§fn eq(&self, other: &BaseInstruction<'a, Op>) -> bool
fn eq(&self, other: &BaseInstruction<'a, Op>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a, Op> Eq for BaseInstruction<'a, Op>
impl<'a, Op> StructuralPartialEq for BaseInstruction<'a, Op>
Auto Trait Implementations§
impl<'a, Op> Freeze for BaseInstruction<'a, Op>where
Op: Freeze,
impl<'a, Op> RefUnwindSafe for BaseInstruction<'a, Op>where
Op: RefUnwindSafe,
impl<'a, Op> Send for BaseInstruction<'a, Op>where
Op: Send,
impl<'a, Op> Sync for BaseInstruction<'a, Op>where
Op: Sync,
impl<'a, Op> Unpin for BaseInstruction<'a, Op>where
Op: Unpin,
impl<'a, Op> UnsafeUnpin for BaseInstruction<'a, Op>where
Op: UnsafeUnpin,
impl<'a, Op> UnwindSafe for BaseInstruction<'a, Op>where
Op: UnwindSafe,
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