summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-08-11 13:11:15 -0700
committerGitHub <noreply@github.com>2023-08-11 13:11:15 -0700
commite689d5ee8e9724fee018aa14be24f9679ec5c851 (patch)
treeb7aa24fddd41fe4e898a48984b23eae330964a62 /tests
parent37223160be2543861bb795dc2d2d4cb6ac9843cb (diff)
Make sure glsl source in spirv is included when compiling with -g3 (#3099)
* Make sure glsl source in spirv is included when compiling with -g3. * Exclude vulkan tests on github linux CI. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/spirv-debug-info.slang15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/bugs/spirv-debug-info.slang b/tests/bugs/spirv-debug-info.slang
new file mode 100644
index 000000000..b04a9ee24
--- /dev/null
+++ b/tests/bugs/spirv-debug-info.slang
@@ -0,0 +1,15 @@
+//TEST:SIMPLE:-target spirv -entry MainPs -stage fragment -profile glsl_450 -g3 -line-directive-mode none
+
+// make sure that the generated spirv has glsl source in it.
+//CHECK: #version 450
+struct PS_OUTPUT
+{
+ float4 vColor : SV_Target0 ;
+} ;
+
+PS_OUTPUT MainPs ( )
+{
+ PS_OUTPUT o ;
+ o . vColor = float4 ( 0 , 0 , 0 , 0 ) ;
+ return o ;
+} \ No newline at end of file