(&self, span: Span, val: u8)
| 17 | } |
| 18 | |
| 19 | pub fn constant_u8(&self, span: Span, val: u8) -> SpirvValue { |
| 20 | let ty = SpirvType::Integer(8, false).def(span, self); |
| 21 | self.def_constant(ty, SpirvConst::U32(val as u32)) |
| 22 | } |
| 23 | |
| 24 | pub fn constant_i16(&self, span: Span, val: i16) -> SpirvValue { |
| 25 | let ty = SpirvType::Integer(16, true).def(span, self); |
no test coverage detected