yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

spencer-lunargFix ShaderDebugInfo having invalid line numbers in 1.0e4c40890

main
3.6 KiB68 linesraw
1spv.debuginfo.non_ascii.glsl.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 44
5
6                              Capability Shader
7                              Extension  "SPV_KHR_non_semantic_info"
8               1:             ExtInstImport  "NonSemantic.Shader.DebugInfo.100"
9               3:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint Fragment 14  "main" 32
12                              ExecutionMode 14 OriginUpperLeft
13               2:             String  "spv.debuginfo.non_ascii.glsl.frag"
14               8:             String  "uint"
15              16:             String  "main"
16              19:             String  "#version 460
17
18layout(location = 0) out vec4 o;
19
20void main()
21{
22    // 非 ASCII 文字をテストするコメント (a comment to test non-ASCII characters)
23    o = vec4(1.0);
24}
25"
26              26:             String  "float"
27              34:             String  "o"
28                              Name 14  "main"
29                              Name 32  "o"
30                              Decorate 32(o) Location 0
31               4:             TypeVoid
32               5:             TypeFunction 4
33               7:             TypeInt 32 0
34              10:      7(int) Constant 32
35              11:      7(int) Constant 6
36              12:      7(int) Constant 0
37               9:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
38              13:      7(int) Constant 3
39               6:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
40              18:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19
41              20:      7(int) Constant 5
42              22:      7(int) Constant 1
43              23:      7(int) Constant 4
44              24:      7(int) Constant 2
45              21:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24
46              17:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20
47              25:             TypeFloat 32
48              27:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 26 10 13 12
49              28:             TypeVector 25(float) 4
50              29:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 23
51              30:             TypePointer Output 28(fvec4)
52              31:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 13 12
53           32(o):     30(ptr) Variable Output
54              35:      7(int) Constant 8
55              33:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 34 29 18 13 12 21 34 32(o) 35
56              39:   25(float) Constant 1065353216
57              40:   28(fvec4) ConstantComposite 39 39 39 39
58              43:      7(int) Constant 9
59        14(main):           4 Function None 5
60              15:             Label
61              37:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
62              38:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12
63              36:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
64              41:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 35 35 12 12
65                              Store 32(o) 40
66              42:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 43 43 12 12
67                              Return
68                              FunctionEnd