diff options
| author | Yong He <yonghe@outlook.com> | 2023-08-15 20:55:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-15 20:55:21 -0700 |
| commit | c16f711d83df90f6826a65d61fc56cdbb932c92c (patch) | |
| tree | 3680ff05b91aa4521fd5c5e9caa9de171cbac558 /tests/bugs/spirv-debug-info.slang | |
| parent | 0c366bc0a4332ee14d08f2555396a18cb64229fa (diff) | |
SPIRV: debug source and debug line. (#3109)
Diffstat (limited to 'tests/bugs/spirv-debug-info.slang')
| -rw-r--r-- | tests/bugs/spirv-debug-info.slang | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/bugs/spirv-debug-info.slang b/tests/bugs/spirv-debug-info.slang index 961f0807e..500299057 100644 --- a/tests/bugs/spirv-debug-info.slang +++ b/tests/bugs/spirv-debug-info.slang @@ -1,7 +1,15 @@ //TEST:SIMPLE(filecheck=CHECK):-target spirv -entry MainPs -stage fragment -profile glsl_450 -g3 -line-directive-mode none +//TEST:SIMPLE(filecheck=CHECK-SPIRV):-target spirv -entry MainPs -stage fragment -profile glsl_450 -g3 -emit-spirv-directly // make sure that the generated spirv has glsl source in it. -//CHECK: #version 450 +// CHECK: #version 450 + +// CHECK-SPIRV: struct PS_OUTPUT +// CHECK-SPIRV: {{.*}} = OpExtInst %void {{.*}} DebugSource +// CHECK-SPIRV: {{.*}} = OpExtInst %void {{.*}} DebugCompilationUnit +// CHECK-SPIRV: {{.*}} OpFunction +// CHECK-SPIRV: {{.*}} = OpExtInst %void {{.*}} DebugLine + struct PS_OUTPUT { float4 vColor : SV_Target0 ; |
