| ... | ... | @@ -444,8 +444,12 @@ fn processGenericInstruction(self: *Assembler) !?AsmValue { |
| 444 | 444 | .OpExecutionMode, .OpExecutionModeId => &self.spv.sections.execution_modes, |
| 445 | 445 | .OpVariable => switch (@intToEnum(spec.StorageClass, operands[2].value)) { |
| 446 | 446 | .Function => &self.func.prologue, |
| 447 | | // TODO: Emit a decl dependency |
| 448 | | else => &self.spv.sections.types_globals_constants, |
| 447 | else => { |
| 448 | // This is currently disabled because global variables are required to be |
| 449 | // emitted in the proper order, and this should be honored in inline assembly |
| 450 | // as well. |
| 451 | return self.todo("global variables", .{}); |
| 452 | }, |
| 449 | 453 | }, |
| 450 | 454 | // Default case - to be worked out further. |
| 451 | 455 | else => &self.func.body, |