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

Method constant_u32

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

Source from the content-addressed store, hash-verified

37 }
38
39 pub fn constant_u32(&self, span: Span, val: u32) -> SpirvValue {
40 let ty = SpirvType::Integer(32, false).def(span, self);
41 self.def_constant(ty, SpirvConst::U32(val))
42 }
43
44 pub fn constant_u64(&self, span: Span, val: u64) -> SpirvValue {
45 let ty = SpirvType::Integer(64, false).def(span, self);

Callers 15

trans_aggregateFunction · 0.80
def_constant_cxMethod · 0.80
const_u32Method · 0.80
load_u32Method · 0.80
store_u32Method · 0.80
copysignMethod · 0.80
memset_const_patternMethod · 0.80
memset_constant_sizeMethod · 0.80

Calls 3

IntegerInterface · 0.85
def_constantMethod · 0.80
defMethod · 0.45

Tested by

no test coverage detected