pub enum SpvOp {
Show 22 variants
LoadConst {
dest: u32,
value: SpvConst,
},
Load {
dest: u32,
src_var: u32,
},
Store {
dest_var: u32,
src: u32,
},
Add {
dest: u32,
a: u32,
b: u32,
},
Sub {
dest: u32,
a: u32,
b: u32,
},
Mul {
dest: u32,
a: u32,
b: u32,
},
Div {
dest: u32,
a: u32,
b: u32,
},
FuncCall {
dest: u32,
func_id: u32,
args: Vec<u32>,
},
Jump {
label: u32,
},
JumpIf {
cond: u32,
label_true: u32,
label_false: u32,
},
Label {
id: u32,
},
Return {
value: Option<u32>,
},
Phi {
dest: u32,
pairs: Vec<(u32, u32)>,
},
Convert {
dest: u32,
src: u32,
to_type: SpvTypeId,
},
Negate {
dest: u32,
src: u32,
},
Not {
dest: u32,
src: u32,
},
Eq {
dest: u32,
a: u32,
b: u32,
},
Ne {
dest: u32,
a: u32,
b: u32,
},
Lt {
dest: u32,
a: u32,
b: u32,
},
Gt {
dest: u32,
a: u32,
b: u32,
},
Le {
dest: u32,
a: u32,
b: u32,
},
Ge {
dest: u32,
a: u32,
b: u32,
},
}Variants§
LoadConst
Load
Store
Add
Sub
Mul
Div
FuncCall
Jump
JumpIf
Label
Return
Phi
Convert
Negate
Not
Eq
Ne
Lt
Gt
Le
Ge
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpvOp
impl RefUnwindSafe for SpvOp
impl Send for SpvOp
impl Sync for SpvOp
impl Unpin for SpvOp
impl UnsafeUnpin for SpvOp
impl UnwindSafe for SpvOp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.