[spv-in] fix emitted expressions for ImageStore

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-05-18 10:01:14 -04:00
1 parent 0985727710
commit 1f53ff1d1e
1 file changed
+2
+2
View File
@@ -1478,9 +1478,11 @@ impl<I: Iterator<Item = u32>> Parser<I> {
}
Op::ImageWrite => {
let extra = inst.expect_at_least(4)?;
block.extend(emitter.finish(expressions));
let stmt =
self.parse_image_write(extra, type_arena, global_arena, expressions)?;
block.push(stmt);
emitter.start(expressions);
}
Op::ImageFetch | Op::ImageRead => {
let extra = inst.expect_at_least(5)?;