summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics
diff options
context:
space:
mode:
Diffstat (limited to 'tests/diagnostics')
-rw-r--r--tests/diagnostics/wave-operations-types.slang14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/diagnostics/wave-operations-types.slang b/tests/diagnostics/wave-operations-types.slang
new file mode 100644
index 000000000..55a6a8e91
--- /dev/null
+++ b/tests/diagnostics/wave-operations-types.slang
@@ -0,0 +1,14 @@
+//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -entry computeMain -stage compute -target metal
+
+RWStructuredBuffer<uint> out;
+
+[shader("compute")]
+void computeMain(uint3 dispatchID : SV_DispatchThreadID)
+{
+ // CHECK: Unsupported type for subgroup operations in Metal. Valid types include
+ // CHECK: Unsupported type for subgroup operations in Metal. Valid types include
+ // CHECK: Unsupported type for subgroup operations in Metal. Valid types include
+ out[0] = WaveRotate(true, 1);
+ out[1] = WaveRotate(uint8_t(dispatchID.x), 1);
+ out[2] = WaveRotate(uint64_t(dispatchID.x), 1);
+}