Struct rspirv::grammar::GlslStd450InstructionTable
source · pub struct GlslStd450InstructionTable;
Expand description
The table for all GLSLstd450
extended instructions.
This table is staic data stored in the library.
Implementations§
source§impl GlslStd450InstructionTable
impl GlslStd450InstructionTable
sourcepub fn lookup_opcode(
opcode: u32
) -> Option<&'static ExtendedInstruction<'static>>
pub fn lookup_opcode( opcode: u32 ) -> Option<&'static ExtendedInstruction<'static>>
Looks up the given opcode
in the instruction table and returns
a reference to the instruction grammar entry if found.
sourcepub fn get(opcode: GLOp) -> &'static ExtendedInstruction<'static>
pub fn get(opcode: GLOp) -> &'static ExtendedInstruction<'static>
Returns a reference to the instruction grammar entry with the given
opcode
.
pub fn iter() -> impl Iterator<Item = &'static ExtendedInstruction<'static>>
Auto Trait Implementations§
impl RefUnwindSafe for GlslStd450InstructionTable
impl Send for GlslStd450InstructionTable
impl Sync for GlslStd450InstructionTable
impl Unpin for GlslStd450InstructionTable
impl UnwindSafe for GlslStd450InstructionTable
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