| ... | @@ -894,6 +894,9 @@ pub fn genNav(cg: *CodeGen, do_codegen: bool) Error!void { | ... | @@ -894,6 +894,9 @@ pub fn genNav(cg: *CodeGen, do_codegen: bool) Error!void { |
| 894 | }); | 894 | }); |
| 895 | if (!cg.needsLayout(as, ty)) try cg.decorateLayout(ty, ty_id); | 895 | if (!cg.needsLayout(as, ty)) try cg.decorateLayout(ty, ty_id); |
| 896 | } | 896 | } |
| | 897 | if (key.is_const and storage_class == .storage_buffer) { |
| | 898 | try cg.decorate(result_id, .non_writable); |
| | 899 | } |
| 897 | }, | 900 | }, |
| 898 | else => {}, | 901 | else => {}, |
| 899 | } | 902 | } |