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

Method def

crates/rustc_codegen_spirv/src/builder_spirv.rs:108–110  ·  view source on GitHub ↗

Important: we *cannot* use bx.emit() here, because this is called in contexts where the emitter is already locked. Doing so may cause subtle rare bugs.

(self, bx: &builder::Builder<'_, '_>)

Source from the content-addressed store, hash-verified

106 // contexts where the emitter is already locked. Doing so may cause subtle
107 // rare bugs.
108 pub fn def(self, bx: &builder::Builder<'_, '_>) -> Word {
109 self.def_with_span(bx, bx.span())
110 }
111
112 // def and def_cx are separated, because Builder has a span associated with
113 // what it's currently emitting.

Callers

nothing calls this directly

Calls 2

def_with_spanMethod · 0.80
spanMethod · 0.80

Tested by

no test coverage detected