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.

Opcode.

Capabilities required for this instruction.

Logical operands for this instruction.

This includes result type id and result id.

Trait Implementations

impl<'a> Debug for Instruction<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> PartialEq for Instruction<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> Eq for Instruction<'a>
[src]

impl<'a> Hash for Instruction<'a>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<'a> Send for Instruction<'a>

impl<'a> Sync for Instruction<'a>