(&self, span: Span, val: f32)
| 81 | } |
| 82 | |
| 83 | pub fn constant_f32(&self, span: Span, val: f32) -> SpirvValue { |
| 84 | let ty = SpirvType::Float(32).def(span, self); |
| 85 | self.def_constant(ty, SpirvConst::F32(val.to_bits())) |
| 86 | } |
| 87 | |
| 88 | pub fn constant_f64(&self, span: Span, val: f64) -> SpirvValue { |
| 89 | let ty = SpirvType::Float(64).def(span, self); |
no test coverage detected