-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Shader.DebugInfo.100 support for DebugSourceContinued (#4030)
- Loading branch information
1 parent
53ccb3a
commit 4652250
Showing
7 changed files
with
176 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Run: %dxc -T ps_6_0 -E MainPs -fspv-debug=vulkan-with-source | ||
|
||
// CHECK: DebugSource {{%\d+}} {{%\d+}} | ||
// CHECK-NOT: DebugSourceContinued | ||
|
||
Texture2D g_tColor; | ||
|
||
SamplerState g_sAniso; | ||
|
||
struct PS_INPUT | ||
{ | ||
float2 vTextureCoords : TEXCOORD2 ; | ||
} ; | ||
|
||
struct PS_OUTPUT | ||
{ | ||
float4 vColor : SV_Target0 ; | ||
} ; | ||
|
||
PS_OUTPUT MainPs ( PS_INPUT i ) | ||
{ | ||
PS_OUTPUT ps_output ; | ||
|
||
ps_output . vColor = g_tColor . Sample ( g_sAniso , i . vTextureCoords . xy ) ; | ||
return ps_output ; | ||
} | ||
|
27 changes: 27 additions & 0 deletions
27
tools/clang/test/CodeGenSPIRV/shader.debug.sourcecontinued.hlsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Run: %dxc -T ps_6_0 -E MainPs -fspv-debug=vulkan-with-source-test | ||
|
||
// CHECK: DebugSource {{%\d+}} {{%\d+}} | ||
// CHECK: DebugSourceContinued {{%\d+}} | ||
|
||
Texture2D g_tColor; | ||
|
||
SamplerState g_sAniso; | ||
|
||
struct PS_INPUT | ||
{ | ||
float2 vTextureCoords : TEXCOORD2 ; | ||
} ; | ||
|
||
struct PS_OUTPUT | ||
{ | ||
float4 vColor : SV_Target0 ; | ||
} ; | ||
|
||
PS_OUTPUT MainPs ( PS_INPUT i ) | ||
{ | ||
PS_OUTPUT ps_output ; | ||
|
||
ps_output . vColor = g_tColor . Sample ( g_sAniso , i . vTextureCoords . xy ) ; | ||
return ps_output ; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters