(&self, span: Span, val: bool)
| 102 | } |
| 103 | |
| 104 | pub fn constant_bool(&self, span: Span, val: bool) -> SpirvValue { |
| 105 | let ty = SpirvType::Bool.def(span, self); |
| 106 | self.def_constant(ty, SpirvConst::Bool(val)) |
| 107 | } |
| 108 | |
| 109 | pub fn constant_composite(&self, ty: Word, fields: impl Iterator<Item = Word>) -> SpirvValue { |
| 110 | // FIXME(eddyb) use `AccumulateVec`s just like `rustc` itself does. |
no test coverage detected