(
&mut self,
result_type: Word,
inst: custom_insts::CustomInst<Operand>,
)
| 63 | |
| 64 | impl<'a, 'tcx> Builder<'a, 'tcx> { |
| 65 | pub fn custom_inst( |
| 66 | &mut self, |
| 67 | result_type: Word, |
| 68 | inst: custom_insts::CustomInst<Operand>, |
| 69 | ) -> SpirvValue { |
| 70 | let custom_ext_inst_set = self.ext_inst.borrow_mut().import_custom(self); |
| 71 | self.emit() |
| 72 | .ext_inst( |
| 73 | result_type, |
| 74 | None, |
| 75 | custom_ext_inst_set, |
| 76 | inst.op() as u32, |
| 77 | inst.into_operands(), |
| 78 | ) |
| 79 | .unwrap() |
| 80 | .with_type(result_type) |
| 81 | } |
| 82 | |
| 83 | pub fn gl_op( |
| 84 | &mut self, |
no test coverage detected