summaryrefslogtreecommitdiffstats
path: root/tests/downstream
diff options
context:
space:
mode:
Diffstat (limited to 'tests/downstream')
-rw-r--r--tests/downstream/dxc-x-arg.slang18
-rw-r--r--tests/downstream/dxc-x-arg.slang.expected.txt4
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/downstream/dxc-x-arg.slang b/tests/downstream/dxc-x-arg.slang
new file mode 100644
index 000000000..93b24a7ad
--- /dev/null
+++ b/tests/downstream/dxc-x-arg.slang
@@ -0,0 +1,18 @@
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-cuda -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-cpu -compute -compile-arg -O3 -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
+//DISABLE_TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj
+
+// We are going to pass -Gis to DXC.
+// Test can only work on DXC.
+//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 -use-dxil -Xslang... -Xdxc -Gis -X. -shaderobj
+
+//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
+
+RWStructuredBuffer<int> outputBuffer;
+
+[numthreads(4, 1, 1)]
+void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
+{
+ outputBuffer[dispatchThreadID.x] = dispatchThreadID.x;
+} \ No newline at end of file
diff --git a/tests/downstream/dxc-x-arg.slang.expected.txt b/tests/downstream/dxc-x-arg.slang.expected.txt
new file mode 100644
index 000000000..bc856dafa
--- /dev/null
+++ b/tests/downstream/dxc-x-arg.slang.expected.txt
@@ -0,0 +1,4 @@
+0
+1
+2
+3