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

Method custom_inst

crates/rustc_codegen_spirv/src/builder/ext_inst.rs:65–81  ·  view source on GitHub ↗
(
        &mut self,
        result_type: Word,
        inst: custom_insts::CustomInst<Operand>,
    )

Source from the content-addressed store, hash-verified

63
64impl<'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,

Callers 2

set_spanMethod · 0.80

Calls 3

import_customMethod · 0.80
with_typeMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected