summaryrefslogtreecommitdiffstats
path: root/tests/cross-compile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cross-compile')
-rw-r--r--tests/cross-compile/vk-invert-y.slang21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/cross-compile/vk-invert-y.slang b/tests/cross-compile/vk-invert-y.slang
new file mode 100644
index 000000000..3ebedb594
--- /dev/null
+++ b/tests/cross-compile/vk-invert-y.slang
@@ -0,0 +1,21 @@
+// vk-invert-y.slang
+
+// Test to confirm that '-f-vk-invert-y' option works as expected.
+
+//TEST:SIMPLE(filecheck=CHECK):-target glsl -entry main -stage vertex -profile vs_5_1 -fvk-invert-y
+
+struct VOutput
+{
+ float4 v : SV_Position;
+}
+
+
+VOutput main()
+{
+ VOutput output;
+ output.v = float4(1, 2, 3, 4);
+
+ // CHECK: [[TMP:[_A-Za-z0-9]+]].y = - output_0.v_0.y;
+ // CHECK: gl_Position = [[TMP]];
+ return output;
+}