(&self, ty: Word, fields: impl Iterator<Item = Word>)
| 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. |
| 111 | self.def_constant(ty, SpirvConst::Composite(&fields.collect::<Vec<_>>())) |
| 112 | } |
| 113 | |
| 114 | pub fn constant_null(&self, ty: Word) -> SpirvValue { |
| 115 | self.def_constant(ty, SpirvConst::Null) |
no test coverage detected