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