From 0e478443815c62c6d6cd042fbbeaeceeb6830478 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 21 Jul 2023 15:03:42 -0700 Subject: Add support for `-fvk-invert-y`. (#3012) Co-authored-by: Yong He --- tests/cross-compile/vk-invert-y.slang | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/cross-compile/vk-invert-y.slang (limited to 'tests') 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; +} -- cgit v1.2.3