Struct rspirv::grammar::CoreInstructionTable [−][src]
pub struct CoreInstructionTable;
The table for all SPIR-V core instructions.
This table is staic data stored in the library.
Methods
impl CoreInstructionTable
[src]
impl CoreInstructionTable
pub fn lookup_opcode(opcode: u16) -> Option<&'static Instruction<'static>>
[src]
pub fn lookup_opcode(opcode: u16) -> Option<&'static Instruction<'static>>
Looks up the given opcode
in the instruction table and returns
a reference to the instruction grammar entry if found.
pub fn get(opcode: Op) -> &'static Instruction<'static>
[src]
pub fn get(opcode: Op) -> &'static Instruction<'static>
Returns a reference to the instruction grammar entry with the given
opcode
.
Auto Trait Implementations
impl Send for CoreInstructionTable
impl Send for CoreInstructionTable
impl Sync for CoreInstructionTable
impl Sync for CoreInstructionTable