diff options
| author | Yong He <yonghe@outlook.com> | 2024-09-27 17:11:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-27 17:11:07 -0700 |
| commit | afb1405bf7974d714cee10fcce0c61fe28cd075d (patch) | |
| tree | f4016719071aefc7f8d353defd729c6a542612e9 /source/slang/hlsl.meta.slang | |
| parent | f667593e77e18521b7f3bf4f339c2549b5e5eb1b (diff) | |
Fix l-value computation for subscript call. (#5177)
Diffstat (limited to 'source/slang/hlsl.meta.slang')
| -rw-r--r-- | source/slang/hlsl.meta.slang | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang index fd5c2ebb7..b0553aa19 100644 --- a/source/slang/hlsl.meta.slang +++ b/source/slang/hlsl.meta.slang @@ -5778,6 +5778,7 @@ struct $(item.name) // // This allows call's to stay aware that the input is from a 'Buffer'. [__NoSideEffect] + [nonmutating] __intrinsic_op($(kIROp_RWStructuredBufferGetElementPtr)) ref; } @@ -16113,6 +16114,7 @@ ${{{{ // If a 'Texture[index]' is referred to by a '__ref', call 'kIROp_ImageSubscript(index)'. // This allows call's to stay aware that the input is from a 'Texture'. __intrinsic_op($(kIROp_ImageSubscript)) + [nonmutating] ref; ${{{{ } // access != SLANG_RESOURCE_ACCESS_READ |
