summaryrefslogtreecommitdiff
path: root/tests/compute/groupshared.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compute/groupshared.slang')
-rw-r--r--tests/compute/groupshared.slang6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/compute/groupshared.slang b/tests/compute/groupshared.slang
index 8712ee878..2ebf325ab 100644
--- a/tests/compute/groupshared.slang
+++ b/tests/compute/groupshared.slang
@@ -3,8 +3,10 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute
+//TEST(compute):COMPARE_COMPUTE_EX:-cuda -compute
-//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out
+//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out, name=gBuffer
+RWStructuredBuffer<int> gBuffer;
#define THREAD_COUNT 4
@@ -26,8 +28,6 @@ int test(int val)
return val;
}
-RWStructuredBuffer<int> gBuffer;
-
[numthreads(THREAD_COUNT, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{