diff options
| author | Yong He <yonghe@outlook.com> | 2023-07-21 15:03:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-21 15:03:42 -0700 |
| commit | 0e478443815c62c6d6cd042fbbeaeceeb6830478 (patch) | |
| tree | 383a16465feadfd5800ebec547ae86d844853210 /tests/cross-compile | |
| parent | 82508d87e1199a2e299ac21b8b6ac8d192917d1d (diff) | |
Add support for `-fvk-invert-y`. (#3012)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/cross-compile')
| -rw-r--r-- | tests/cross-compile/vk-invert-y.slang | 21 |
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; +} |
