mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-30 10:45:06 +00:00
[spv-in] Allow OpLine anywhere in the function
This commit is contained in:
parent
9b34d503da
commit
aea755fd32
@ -141,6 +141,12 @@ impl<I: Iterator<Item = u32>> super::Parser<I> {
|
||||
let fun_inst = self.next_inst()?;
|
||||
log::debug!("{:?}", fun_inst.op);
|
||||
match fun_inst.op {
|
||||
spirv::Op::Line => {
|
||||
fun_inst.expect(4)?;
|
||||
let _file_id = self.next()?;
|
||||
let _row_id = self.next()?;
|
||||
let _col_id = self.next()?;
|
||||
}
|
||||
spirv::Op::Label => {
|
||||
// Read the label ID
|
||||
fun_inst.expect(2)?;
|
||||
|
Loading…
Reference in New Issue
Block a user