mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[spv-out] Fix annotations not getting added to output (#281)
This commit is contained in:
@@ -1671,10 +1671,6 @@ impl Writer {
|
||||
));
|
||||
}
|
||||
|
||||
for annotation in self.annotations.iter() {
|
||||
annotation.to_words(&mut self.logical_layout.annotations);
|
||||
}
|
||||
|
||||
for (handle, ir_function) in ir_module.functions.iter() {
|
||||
let id = self.write_function(ir_function, ir_module);
|
||||
self.lookup_function.insert(handle, id);
|
||||
@@ -1703,6 +1699,10 @@ impl Writer {
|
||||
debug.to_words(&mut self.logical_layout.debugs);
|
||||
}
|
||||
}
|
||||
|
||||
for annotation in self.annotations.iter() {
|
||||
annotation.to_words(&mut self.logical_layout.annotations);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn write(&mut self, ir_module: &crate::Module) -> Vec<Word> {
|
||||
|
||||
Reference in New Issue
Block a user