(&self, span: Span, val: f64)
| 86 | } |
| 87 | |
| 88 | pub fn constant_f64(&self, span: Span, val: f64) -> SpirvValue { |
| 89 | let ty = SpirvType::Float(64).def(span, self); |
| 90 | self.def_constant(ty, SpirvConst::F64(val.to_bits())) |
| 91 | } |
| 92 | |
| 93 | pub fn constant_float(&self, ty: Word, val: f64) -> SpirvValue { |
| 94 | match self.lookup_type(ty) { |
no test coverage detected