summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/metal/simple-compute.slang10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/metal/simple-compute.slang b/tests/metal/simple-compute.slang
new file mode 100644
index 000000000..e099704be
--- /dev/null
+++ b/tests/metal/simple-compute.slang
@@ -0,0 +1,10 @@
+//TEST:SIMPLE(filecheck=CHECK): -target metal
+
+RWStructuredBuffer<float> outputBuffer;
+
+// CHECK: {{.*}}kernel{{.*}} void main()
+[numthreads(1,1,1)]
+void main()
+{
+ outputBuffer[0] = 1.0f;
+} \ No newline at end of file