mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
spv-in: Allow branch weights in OpBranchConditional
This commit is contained in:
committed by
Dzmitry Malyshau
parent
9c75f3cdce
commit
cf0c31cc85
@@ -2832,6 +2832,11 @@ impl<I: Iterator<Item = u32>> Parser<I> {
|
||||
reject,
|
||||
});
|
||||
|
||||
// Consume branch weights
|
||||
for _ in 4..inst.wc {
|
||||
let _ = self.next()?;
|
||||
}
|
||||
|
||||
return Ok(());
|
||||
}
|
||||
Op::Switch => {
|
||||
|
||||
Reference in New Issue
Block a user