diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-04-23 14:40:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-23 14:40:01 -0400 |
| commit | 6f5c250b19b03a8eb4b6a9254613ce8539769a23 (patch) | |
| tree | fad6585589f143838a831f94ff07ec9a556ab7d2 /tests/compute/atomics-buffer.slang | |
| parent | 806ab08f64c76e961ecdf40ecaf9499c5a88ac5f (diff) | |
Small improvements around atomics (#1333)
* Use the original value in the test.
Run test on VK.
* Added RWBuffer and Buffer types to C++ prelude.
* Add vk to atomics.slang tests
* Update target-compatibility around atomics.
When tests disabled in atomics-buffer.slang explained why.
* tabs -> spaces.
* Small docs improvement.
Diffstat (limited to 'tests/compute/atomics-buffer.slang')
| -rw-r--r-- | tests/compute/atomics-buffer.slang | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/compute/atomics-buffer.slang b/tests/compute/atomics-buffer.slang index 1739d4bbc..cf92f1b21 100644 --- a/tests/compute/atomics-buffer.slang +++ b/tests/compute/atomics-buffer.slang @@ -2,6 +2,13 @@ //TEST(compute):COMPARE_COMPUTE_EX:-slang -compute //TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 +// Doesn't work on VK - GLSL output doesn't replace InterlockedAdd. +//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -vk +// Cannot work on CUDA, as outputBuffer becomes a CUsurfObject - which do not appear to have atomics available. +// If the buffer was a StructuredBuffer this would work on CUDA. +//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -cuda +// Atomics not available on CPU currently +//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -cpu //TEST_INPUT:ubuffer(format=R_UInt32, data=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]):out,name outputBuffer |
