summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/render/check-backend-support-on-ci.slang20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/render/check-backend-support-on-ci.slang b/tests/render/check-backend-support-on-ci.slang
new file mode 100644
index 000000000..c0e2fbae3
--- /dev/null
+++ b/tests/render/check-backend-support-on-ci.slang
@@ -0,0 +1,20 @@
+//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHK): -shaderobj -output-using-type
+
+//TEST_INPUT:ubuffer(data=[1.0 2.0 3.0 4.0], stride=4):name=gInput
+RWStructuredBuffer<float> gInput;
+
+//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=gOutput
+RWStructuredBuffer<float> gOutput;
+
+//CHK:1
+//CHK-NEXT:2
+//CHK-NEXT:3
+//CHK-NEXT:4
+
+[Shader("compute")]
+[NumThreads(4, 1, 1)]
+void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
+{
+ uint tid = dispatchThreadID.x;
+ gOutput[tid] = gInput[tid];
+}