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