From e689d5ee8e9724fee018aa14be24f9679ec5c851 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 11 Aug 2023 13:11:15 -0700 Subject: 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 --- tests/bugs/spirv-debug-info.slang | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/bugs/spirv-debug-info.slang (limited to 'tests') 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 -- cgit v1.2.3