(&self, span: Span, val: i16)
| 22 | } |
| 23 | |
| 24 | pub fn constant_i16(&self, span: Span, val: i16) -> SpirvValue { |
| 25 | let ty = SpirvType::Integer(16, true).def(span, self); |
| 26 | self.def_constant(ty, SpirvConst::U32(val as u32)) |
| 27 | } |
| 28 | |
| 29 | pub fn constant_u16(&self, span: Span, val: u16) -> SpirvValue { |
| 30 | let ty = SpirvType::Integer(16, false).def(span, self); |
no test coverage detected