(&self, span: Span, val: i32)
| 32 | } |
| 33 | |
| 34 | pub fn constant_i32(&self, span: Span, val: i32) -> SpirvValue { |
| 35 | let ty = SpirvType::Integer(32, true).def(span, self); |
| 36 | self.def_constant(ty, SpirvConst::U32(val as u32)) |
| 37 | } |
| 38 | |
| 39 | pub fn constant_u32(&self, span: Span, val: u32) -> SpirvValue { |
| 40 | let ty = SpirvType::Integer(32, false).def(span, self); |
no test coverage detected