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

Method constant_u64

crates/rustc_codegen_spirv/src/codegen_cx/constant.rs:44–47  ·  view source on GitHub ↗
(&self, span: Span, val: u64)

Source from the content-addressed store, hash-verified

42 }
43
44 pub fn constant_u64(&self, span: Span, val: u64) -> SpirvValue {
45 let ty = SpirvType::Integer(64, false).def(span, self);
46 self.def_constant(ty, SpirvConst::U64(val))
47 }
48
49 pub fn constant_int(&self, ty: Word, val: u64) -> SpirvValue {
50 match self.lookup_type(ty) {

Callers 6

def_constant_cxMethod · 0.80
type_arrayMethod · 0.80
const_u64Method · 0.80
copysignMethod · 0.80
memset_const_patternMethod · 0.80

Calls 3

IntegerInterface · 0.85
def_constantMethod · 0.80
defMethod · 0.45

Tested by

no test coverage detected