diff options
| author | Yong He <yonghe@outlook.com> | 2023-05-09 09:44:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-09 09:44:33 -0700 |
| commit | 38ed03a7203baacf36fca62539ac74fd45ed42d2 (patch) | |
| tree | 9648daee25c0a2aaac2fa8cd7d91908fd2aeef2f /tests/cross-compile/func-resource-param-array.slang | |
| parent | 89a1234964a1927c4936a2758f72b7d6c9d0bc73 (diff) | |
Fix function side-effectness prop logic. (#2875)
Diffstat (limited to 'tests/cross-compile/func-resource-param-array.slang')
| -rw-r--r-- | tests/cross-compile/func-resource-param-array.slang | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/cross-compile/func-resource-param-array.slang b/tests/cross-compile/func-resource-param-array.slang index 7062169dc..d7b7fca99 100644 --- a/tests/cross-compile/func-resource-param-array.slang +++ b/tests/cross-compile/func-resource-param-array.slang @@ -32,7 +32,6 @@ void main(uint3 tid : SV_DispatchThreadID) { uint ii = tid.x; uint jj = tid.y; - uint kk = tid.z; // Can we specialize `f`? // @@ -56,7 +55,7 @@ void main(uint3 tid : SV_DispatchThreadID) // What if the function takes an array, and we pass // in an element of an array-of-arrays? // - tmp += g(c[ii], jj, kk); + tmp += g(c[ii], jj, tid.z); a[ii] = tmp; } |
