MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / import_custom

Method import_custom

crates/rustc_codegen_spirv/src/builder/ext_inst.rs:20–30  ·  view source on GitHub ↗
(&mut self, bx: &Builder<'_, '_>)

Source from the content-addressed store, hash-verified

18
19impl 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 {

Callers 2

callMethod · 0.80
custom_instMethod · 0.80

Calls 1

emit_globalMethod · 0.80

Tested by

no test coverage detected