(&mut self, bx: &Builder<'_, '_>)
| 18 | |
| 19 | impl ExtInst { |
| 20 | pub fn import_custom(&mut self, bx: &Builder<'_, '_>) -> Word { |
| 21 | if let Some(id) = self.custom { |
| 22 | id |
| 23 | } else { |
| 24 | let id = bx |
| 25 | .emit_global() |
| 26 | .ext_inst_import(custom_insts::CUSTOM_EXT_INST_SET.clone()); |
| 27 | self.custom = Some(id); |
| 28 | id |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | pub fn import_glsl(&mut self, bx: &Builder<'_, '_>) -> Word { |
| 33 | if let Some(id) = self.glsl { |
no test coverage detected