diff options
| author | Yong He <yonghe@outlook.com> | 2024-10-27 09:40:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-27 09:40:17 -0700 |
| commit | 14f4b45d4b977805c5dbe472e327bdd3e856fb94 (patch) | |
| tree | 8c913b1465fd1cedb3e3a1ddca8bdccd3f0ba364 /tests | |
| parent | a508b264eda4bc3c99ba1f44eab1dec6e5ce06c0 (diff) | |
Add `InterlockedAddF64` intrinsic. (#5412)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/spirv/double-atomic-add-byte-address-buffer.slang | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/spirv/double-atomic-add-byte-address-buffer.slang b/tests/spirv/double-atomic-add-byte-address-buffer.slang new file mode 100644 index 000000000..1b4a455ee --- /dev/null +++ b/tests/spirv/double-atomic-add-byte-address-buffer.slang @@ -0,0 +1,12 @@ +//TEST:SIMPLE(filecheck=CHECK): -target spirv + +// CHECK: OpAtomicFAddEXT + +RWByteAddressBuffer bab; + +[numthreads(1, 1, 1)] +void computeMain() +{ + double d; + bab.InterlockedAddF64(0, 1.0, d); +}
\ No newline at end of file |
