yum-mirror/glslang

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

spencer-lunargFix ShaderDebugInfo having invalid line numbers in 1.0e4c40890

main
6.6 KiB120 linesraw
1spv.debuginfo.ubo.glsl.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 77
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" 55
12                              ExecutionMode 14 OriginUpperLeft
13               2:             String  "spv.debuginfo.ubo.glsl.frag"
14               8:             String  "uint"
15              16:             String  "main"
16              19:             String  "#version 460
17
18uniform UBO1 {
19    vec4 memberA;
20};
21
22uniform UBO2 {
23    vec4 memberB;
24} uboInstance;
25
26out vec4 outColor;
27
28void main() {
29    outColor = memberA + uboInstance.memberB;
30}"
31              26:             String  "float"
32              32:             String  "memberA"
33              35:             String  "UBO1"
34              40:             String  ""
35              44:             String  "memberB"
36              46:             String  "UBO2"
37              52:             String  "uboInstance"
38              57:             String  "outColor"
39              63:             String  "int"
40                              Name 14  "main"
41                              Name 30  "UBO1"
42                              MemberName 30(UBO1) 0  "memberA"
43                              Name 38  ""
44                              Name 42  "UBO2"
45                              MemberName 42(UBO2) 0  "memberB"
46                              Name 50  "uboInstance"
47                              Name 55  "outColor"
48                              Decorate 30(UBO1) Block
49                              MemberDecorate 30(UBO1) 0 Offset 0
50                              Decorate 38 Binding 0
51                              Decorate 38 DescriptorSet 0
52                              Decorate 42(UBO2) Block
53                              MemberDecorate 42(UBO2) 0 Offset 0
54                              Decorate 50(uboInstance) Binding 1
55                              Decorate 50(uboInstance) DescriptorSet 0
56                              Decorate 55(outColor) Location 0
57               4:             TypeVoid
58               5:             TypeFunction 4
59               7:             TypeInt 32 0
60              10:      7(int) Constant 32
61              11:      7(int) Constant 6
62              12:      7(int) Constant 0
63               9:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
64              13:      7(int) Constant 3
65               6:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
66              18:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19
67              20:      7(int) Constant 13
68              22:      7(int) Constant 1
69              23:      7(int) Constant 4
70              24:      7(int) Constant 2
71              21:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24
72              17:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20
73              25:             TypeFloat 32
74              27:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 26 10 13 12
75              28:             TypeVector 25(float) 4
76              29:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 23
77        30(UBO1):             TypeStruct 28(fvec4)
78              33:      7(int) Constant 10
79              31:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 32 29 18 23 33 12 12 13
80              34:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 35 22 18 13 12 21 35 12 13 31
81              36:             TypePointer Uniform 30(UBO1)
82              37:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 34 24 12
83              38:     36(ptr) Variable Uniform
84              41:      7(int) Constant 8
85              39:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 40 34 18 13 12 21 40 38 41
86        42(UBO2):             TypeStruct 28(fvec4)
87              43:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 44 29 18 41 33 12 12 13
88              47:      7(int) Constant 7
89              45:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 46 22 18 47 12 21 46 12 13 43
90              48:             TypePointer Uniform 42(UBO2)
91              49:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 45 24 12
92 50(uboInstance):     48(ptr) Variable Uniform
93              51:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 52 45 18 47 12 21 52 50(uboInstance) 41
94              53:             TypePointer Output 28(fvec4)
95              54:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 13 12
96    55(outColor):     53(ptr) Variable Output
97              58:      7(int) Constant 11
98              56:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 57 29 18 58 12 21 57 55(outColor) 41
99              62:             TypeInt 32 1
100              64:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 63 10 23 12
101              65:     62(int) Constant 0
102              66:             TypePointer Uniform 28(fvec4)
103              67:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 24 12
104              70:      7(int) Constant 14
105              76:      7(int) Constant 15
106        14(main):           4 Function None 5
107              15:             Label
108              60:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
109              61:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12
110              59:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
111              69:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 70 70 12 12
112              68:     66(ptr) AccessChain 38 65
113              71:   28(fvec4) Load 68
114              72:     66(ptr) AccessChain 50(uboInstance) 65
115              73:   28(fvec4) Load 72
116              74:   28(fvec4) FAdd 71 73
117                              Store 55(outColor) 74
118              75:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 76 76 12 12
119                              Return
120                              FunctionEnd