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

Method constant_u16

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

Source from the content-addressed store, hash-verified

27 }
28
29 pub fn constant_u16(&self, span: Span, val: u16) -> SpirvValue {
30 let ty = SpirvType::Integer(16, false).def(span, self);
31 self.def_constant(ty, SpirvConst::U32(val as u32))
32 }
33
34 pub fn constant_i32(&self, span: Span, val: i32) -> SpirvValue {
35 let ty = SpirvType::Integer(32, true).def(span, self);

Callers 2

memset_const_patternMethod · 0.80

Calls 3

IntegerInterface · 0.85
def_constantMethod · 0.80
defMethod · 0.45

Tested by

no test coverage detected