summaryrefslogtreecommitdiff
path: root/tests/language-feature/capability/capabilitySimplification2.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/language-feature/capability/capabilitySimplification2.slang')
-rw-r--r--tests/language-feature/capability/capabilitySimplification2.slang27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/language-feature/capability/capabilitySimplification2.slang b/tests/language-feature/capability/capabilitySimplification2.slang
new file mode 100644
index 000000000..8d96884ce
--- /dev/null
+++ b/tests/language-feature/capability/capabilitySimplification2.slang
@@ -0,0 +1,27 @@
+//TEST:SIMPLE(filecheck=SPIRV): -target spirv -emit-spirv-directly -entry computeMain -stage compute -profile sm_5_0
+//TEST:SIMPLE(filecheck=GLSL): -target glsl -entry computeMain -stage compute -profile sm_5_0
+//TEST:SIMPLE(filecheck=HLSL): -target hlsl -entry computeMain -stage compute -profile sm_5_0
+//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target spirv -emit-spirv-directly -entry computeMain -stage compute -profile sm_5_0 -ignore-capabilities
+
+
+// CHECK_IGNORE_CAPS-NOT: warning 41012
+
+// SPIRV: warning 41012
+// SPIRV-NOT: spirv_1_2
+// SPIRV-NOT: spirv_1_3
+// SPIRV-SAME: spvGroupNonUniformBallot
+
+// GLSL: warning 41012
+// GLSL-NOT: GLSL_400
+// GLSL-NOT: GLSL_430
+// GLSL-SAME: GL_KHR_shader_subgroup_ballot
+
+// HLSL: warning 41012
+// HLSL-NOT: sm_5_1
+// HLSL-SAME: sm_6_0
+
+[require(sm_6_0)]
+[numthreads(1,1,1)]
+void computeMain()
+{
+}