summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-04-17 21:32:28 -0700
committerGitHub <noreply@github.com>2024-04-17 21:32:28 -0700
commit2c66cc7ef03b4d38fc463f2c8609a81232fcb91a (patch)
tree7e100ddd0df91e8d7ae90c3335bb416bc50ad6ac /tests
parent4b3f554a58e4224806c31d66874fbe60f1f09332 (diff)
Add skeleton for metal backend. (#3971)
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