(&self, span: Span, val: u64)
| 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) { |
no test coverage detected