Emit correct nonsemantic debug info for explicitly sized types

Previously, the type names in the nonsemantic shader debug info would be
"int", "uint", or "float" for all numeric types. This change makes the
correct names such as "int8_t" or "float16_t" get emitted.
This commit is contained in:
Sajjad Mirza 2023-09-11 17:11:22 -07:00 committed by GitHub
parent b2dc622faf
commit afe6e781bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 390 additions and 127 deletions

View file

@ -10,7 +10,7 @@ spv.debuginfo.glsl.vert
MemoryModel Logical GLSL450
EntryPoint Vertex 14 "main" 34 39 45 51 59 75 289 307 312 337 353 370 409 418
1: String ""
9: String "uint"
8: String "uint"
15: String "main"
18: String "// OpModuleProcessed auto-map-locations
// OpModuleProcessed auto-map-bindings
@ -127,7 +127,7 @@ spv.debuginfo.glsl.vert
10: 7(int) Constant 32
11: 7(int) Constant 6
12: 7(int) Constant 0
8: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 10 11 12
9: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
13: 7(int) Constant 3
6: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
17: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 18