| author | |
| committer | |
| log | ae4fc20de3543370e8a27989c5957e34f4638676 |
| tree | 4186746bb951e75047a7ec06ac0ab72e506b5bd5 |
| parent | be7634b82829cbd0ba6c1845a7ce91cc1aa60f88 |
1 files changed, 3 insertions(+), 0 deletions(-)
src/codegen/spirv/CodeGen.zig+3| ... | ... | @@ -894,6 +894,9 @@ pub fn genNav(cg: *CodeGen, do_codegen: bool) Error!void { |
| 894 | 894 | }); |
| 895 | 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 | 901 | else => {}, |
| 899 | 902 | } |