diff options
| author | Yong He <yonghe@outlook.com> | 2024-11-02 20:35:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-02 20:35:22 -0700 |
| commit | f4d5aa73fb72a483f04bb6b014e80192331504ea (patch) | |
| tree | 6b3143b85f05ccba735beb7b98531104e8445053 /tests/metal | |
| parent | 61cddbee405935fa8391a757a08bcbe4ea7ac98f (diff) | |
Revert uint<->int implicit cast cost to prefer promotion to unsigned. (#5480)
Diffstat (limited to 'tests/metal')
| -rw-r--r-- | tests/metal/atomic-texture-texture1d.slang | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/metal/atomic-texture-texture1d.slang b/tests/metal/atomic-texture-texture1d.slang index 70f639cb5..8a47af8ee 100644 --- a/tests/metal/atomic-texture-texture1d.slang +++ b/tests/metal/atomic-texture-texture1d.slang @@ -128,7 +128,7 @@ void test() InterlockedOr(intTexture1DArray[0], valInt, originalValueInt); InterlockedXor(intTexture1DArray[0], valInt, originalValueInt); InterlockedExchange(intTexture1DArray[0], valInt, originalValueInt); - InterlockedCompareExchange(intTexture1DArray[0], valInt, compareValueInt, originalValueUInt); + InterlockedCompareExchange(intTexture1DArray[0], valInt, compareValueInt, originalValueInt); InterlockedCompareStore(intTexture1DArray[0], valUInt, compareValueUInt); InterlockedAdd(uintTexture1DArray[0], valUInt); |
