| ... | @@ -1396,10 +1396,6 @@ const NavGen = struct { | ... | @@ -1396,10 +1396,6 @@ const NavGen = struct { |
| 1396 | | 1396 | |
| 1397 | const child_ty_id = try self.resolveType(child_ty, child_repr); | 1397 | const child_ty_id = try self.resolveType(child_ty, child_repr); |
| 1398 | | 1398 | |
| 1399 | if (storage_class == .Uniform or storage_class == .PushConstant) { | | |
| 1400 | try self.spv.decorate(child_ty_id, .Block); | | |
| 1401 | } | | |
| 1402 | | | |
| 1403 | try self.spv.sections.types_globals_constants.emit(self.spv.gpa, .OpTypePointer, .{ | 1399 | try self.spv.sections.types_globals_constants.emit(self.spv.gpa, .OpTypePointer, .{ |
| 1404 | .id_result = result_id, | 1400 | .id_result = result_id, |
| 1405 | .storage_class = storage_class, | 1401 | .storage_class = storage_class, |
| ... | @@ -1746,6 +1742,10 @@ const NavGen = struct { | ... | @@ -1746,6 +1742,10 @@ const NavGen = struct { |
| 1746 | defer self.gpa.free(type_name); | 1742 | defer self.gpa.free(type_name); |
| 1747 | try self.spv.debugName(result_id, type_name); | 1743 | try self.spv.debugName(result_id, type_name); |
| 1748 | | 1744 | |
| | 1745 | if (target.os.tag == .vulkan) { |
| | 1746 | try self.spv.decorate(result_id, .Block); // Decorate all structs as block for now... |
| | 1747 | } |
| | 1748 | |
| 1749 | return result_id; | 1749 | return result_id; |
| 1750 | }, | 1750 | }, |
| 1751 | .struct_type => ip.loadStructType(ty.toIntern()), | 1751 | .struct_type => ip.loadStructType(ty.toIntern()), |
| ... | @@ -1791,6 +1791,10 @@ const NavGen = struct { | ... | @@ -1791,6 +1791,10 @@ const NavGen = struct { |
| 1791 | defer self.gpa.free(type_name); | 1791 | defer self.gpa.free(type_name); |
| 1792 | try self.spv.debugName(result_id, type_name); | 1792 | try self.spv.debugName(result_id, type_name); |
| 1793 | | 1793 | |
| | 1794 | if (target.os.tag == .vulkan) { |
| | 1795 | try self.spv.decorate(result_id, .Block); // Decorate all structs as block for now... |
| | 1796 | } |
| | 1797 | |
| 1794 | return result_id; | 1798 | return result_id; |
| 1795 | }, | 1799 | }, |
| 1796 | .optional => { | 1800 | .optional => { |