yum-mirror/glslang

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

spencer-lunargFix ShaderDebugInfo having invalid line numbers in 1.0e4c40890

main
6.0 KiB106 linesraw
1spv.debuginfo.const_params.glsl.comp
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 73
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 GLCompute 14  "main"
12                              ExecutionMode 14 LocalSize 1 1 1
13               2:             String  "spv.debuginfo.const_params.glsl.comp"
14               8:             String  "uint"
15              17:             String  "float"
16              35:             String  "function"
17              38:             String  "#version 450
18
19void function(
20    const float f,
21    const vec2 f2,
22    const vec3 f3,
23    const vec4 f4)
24{
25}
26
27void main()
28{
29    function(0, vec2(0), vec3(0), vec4(0));
30}
31"
32              43:             String  "f"
33              49:             String  "f2"
34              52:             String  "f3"
35              55:             String  "f4"
36              57:             String  "main"
37                              Name 14  "main"
38                              Name 33  "function(f1;vf2;vf3;vf4;"
39                              Name 29  "f"
40                              Name 30  "f2"
41                              Name 31  "f3"
42                              Name 32  "f4"
43               4:             TypeVoid
44               5:             TypeFunction 4
45               7:             TypeInt 32 0
46              10:      7(int) Constant 32
47              11:      7(int) Constant 6
48              12:      7(int) Constant 0
49               9:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
50              13:      7(int) Constant 3
51               6:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
52              16:             TypeFloat 32
53              18:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 17 10 13 12
54              19:             TypeVector 16(float) 2
55              20:      7(int) Constant 2
56              21:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 20
57              22:             TypeVector 16(float) 3
58              23:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 13
59              24:             TypeVector 16(float) 4
60              25:      7(int) Constant 4
61              26:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 25
62              27:             TypeFunction 4 16(float) 19(fvec2) 22(fvec3) 24(fvec4)
63              28:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 18 21 23 26
64              37:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 38
65              39:      7(int) Constant 7
66              41:      7(int) Constant 1
67              40:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 41 25 37 20
68              36:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 35 28 37 39 12 40 35 13 39
69              42:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 43 18 37 39 12 36 25 41
70              45:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
71              48:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 49 21 37 39 12 36 25 20
72              51:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 52 23 37 39 12 36 25 13
73              54:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 55 26 37 39 12 36 25 25
74              59:      7(int) Constant 11
75              58:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 57 6 37 59 12 40 57 13 59
76              64:   16(float) Constant 0
77              65:   19(fvec2) ConstantComposite 64 64
78              66:   22(fvec3) ConstantComposite 64 64 64
79              67:   24(fvec4) ConstantComposite 64 64 64 64
80              70:      7(int) Constant 13
81              72:      7(int) Constant 14
82        14(main):           4 Function None 5
83              15:             Label
84              62:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58
85              63:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 37 59 59 12 12
86              61:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 58 14(main)
87              69:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 37 70 70 12 12
88              68:           4 FunctionCall 33(function(f1;vf2;vf3;vf4;) 64 65 66 67
89              71:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 37 72 72 12 12
90                              Return
91                              FunctionEnd
9233(function(f1;vf2;vf3;vf4;):           4 Function None 27
93           29(f):   16(float) FunctionParameter
94          30(f2):   19(fvec2) FunctionParameter
95          31(f3):   22(fvec3) FunctionParameter
96          32(f4):   24(fvec4) FunctionParameter
97              34:             Label
98              46:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 36
99              47:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 37 39 39 12 12
100              44:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 42 29(f) 45
101              50:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 48 30(f2) 45
102              53:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 51 31(f3) 45
103              56:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 54 32(f4) 45
104              60:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 36 33(function(f1;vf2;vf3;vf4;)
105                              Return
106                              FunctionEnd