yum-mirror/glslang

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

spencer-lunargFix ShaderDebugInfo having invalid line numbers in 1.0e4c40890

main
13.5 KiB227 linesraw
1spv.debuginfo.bufferref.glsl.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 150
5
6                              Capability Shader
7                              Capability PhysicalStorageBufferAddressesEXT
8                              Extension  "SPV_KHR_non_semantic_info"
9                              Extension  "SPV_KHR_physical_storage_buffer"
10                              Extension  "SPV_KHR_relaxed_extended_instruction"
11                              Extension  "SPV_KHR_storage_buffer_storage_class"
12               1:             ExtInstImport  "NonSemantic.Shader.DebugInfo.100"
13               3:             ExtInstImport  "GLSL.std.450"
14                              MemoryModel PhysicalStorageBuffer64EXT GLSL450
15                              EntryPoint Fragment 14  "main" 64 70
16                              ExecutionMode 14 OriginUpperLeft
17               2:             String  "spv.debuginfo.bufferref.glsl.frag"
18               8:             String  "uint"
19              16:             String  "main"
20              19:             String  "#version 450 core
21#extension GL_EXT_buffer_reference : enable
22
23layout(buffer_reference, std430) buffer MeshVertexPositions {
24  float data[];
25};
26
27struct Mesh {
28  MeshVertexPositions positions;
29};
30
31layout(set = 0, binding = 0) readonly buffer PerPass_meshes {
32  Mesh data[];
33} perPass_meshes;
34
35layout(location = 0) out vec4 out_fragColor;
36
37layout(location = 0) in flat uint tri_idx0;
38
39void main() {
40    Mesh meshData = perPass_meshes.data[tri_idx0];
41
42    vec3 vertex_pos0 = vec3(meshData.positions.data[3 * tri_idx0],
43                            meshData.positions.data[3 * tri_idx0 + 1],
44                            meshData.positions.data[3 * tri_idx0 + 2]);
45    
46    out_fragColor = vec4(vertex_pos0, 1.0);
47}
48"
49              30:             String  "positions"
50              34:             String  "Mesh"
51              37:             String  "float"
52              43:             String  "data"
53              46:             String  "MeshVertexPositions"
54              54:             String  "PerPass_meshes"
55              59:             String  "perPass_meshes"
56              66:             String  "out_fragColor"
57              72:             String  "tri_idx0"
58              86:             String  "meshData"
59              91:             String  "int"
60             109:             String  "vertex_pos0"
61                              SourceExtension  "GL_EXT_buffer_reference"
62                              Name 14  "main"
63                              Name 28  "Mesh"
64                              MemberName 28(Mesh) 0  "positions"
65                              Name 41  "MeshVertexPositions"
66                              MemberName 41(MeshVertexPositions) 0  "data"
67                              Name 49  "PerPass_meshes"
68                              MemberName 49(PerPass_meshes) 0  "data"
69                              Name 57  "perPass_meshes"
70                              Name 64  "out_fragColor"
71                              Name 70  "tri_idx0"
72                              Name 77  "Mesh"
73                              MemberName 77(Mesh) 0  "positions"
74                              Name 84  "meshData"
75                              Name 107  "vertex_pos0"
76                              MemberDecorate 28(Mesh) 0 Offset 0
77                              Decorate 39 ArrayStride 4
78                              Decorate 41(MeshVertexPositions) Block
79                              MemberDecorate 41(MeshVertexPositions) 0 Offset 0
80                              Decorate 47 ArrayStride 8
81                              Decorate 49(PerPass_meshes) Block
82                              MemberDecorate 49(PerPass_meshes) 0 NonWritable
83                              MemberDecorate 49(PerPass_meshes) 0 Offset 0
84                              Decorate 57(perPass_meshes) NonWritable
85                              Decorate 57(perPass_meshes) Binding 0
86                              Decorate 57(perPass_meshes) DescriptorSet 0
87                              Decorate 64(out_fragColor) Location 0
88                              Decorate 70(tri_idx0) Flat
89                              Decorate 70(tri_idx0) Location 0
90                              Decorate 84(meshData) DecorationAliasedPointerEXT
91               4:             TypeVoid
92               5:             TypeFunction 4
93               7:             TypeInt 32 0
94              10:      7(int) Constant 32
95              11:      7(int) Constant 6
96              12:      7(int) Constant 0
97               9:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
98              13:      7(int) Constant 3
99               6:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
100              18:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19
101              20:      7(int) Constant 20
102              22:      7(int) Constant 1
103              23:      7(int) Constant 4
104              24:      7(int) Constant 2
105              21:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24
106              17:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20
107                              TypeForwardPointer 25 PhysicalStorageBufferEXT
108              26:      7(int) Constant 5349
109              27:           4 ExtInstWithForwardRefsKHR 1(NonSemantic.Shader.DebugInfo.100) 3 45 26 12
110        28(Mesh):             TypeStruct 25
111              31:      7(int) Constant 9
112              32:      7(int) Constant 23
113              29:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 30 27 18 31 32 12 12 13
114              35:      7(int) Constant 12
115              33:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 34 22 18 35 12 21 34 12 13 29
116              36:             TypeFloat 32
117              38:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 37 10 13 12
118              39:             TypeRuntimeArray 36(float)
119              40:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 38 12
12041(MeshVertexPositions):             TypeStruct 39
121              44:      7(int) Constant 5
122              42:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 43 40 18 44 31 12 12 13
123              45:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 46 22 18 35 12 21 46 12 13 42
124              25:             TypePointer PhysicalStorageBufferEXT 41(MeshVertexPositions)
125              47:             TypeRuntimeArray 28(Mesh)
126              48:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 33 12
12749(PerPass_meshes):             TypeStruct 47
128              51:      7(int) Constant 13
129              52:      7(int) Constant 8
130              50:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 43 48 18 51 52 12 12 13
131              53:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 54 22 18 35 12 21 54 12 13 50
132              55:             TypePointer StorageBuffer 49(PerPass_meshes)
133              56:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 53 35 12
13457(perPass_meshes):     55(ptr) Variable StorageBuffer
135              58:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 59 53 18 35 12 21 59 57(perPass_meshes) 52
136              60:             TypeVector 36(float) 4
137              61:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 38 23
138              62:             TypePointer Output 60(fvec4)
139              63:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 61 13 12
14064(out_fragColor):     62(ptr) Variable Output
141              67:      7(int) Constant 16
142              65:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 66 61 18 67 12 21 66 64(out_fragColor) 52
143              68:             TypePointer Input 7(int)
144              69:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 9 22 12
145    70(tri_idx0):     68(ptr) Variable Input
146              73:      7(int) Constant 18
147              71:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 72 9 18 73 12 21 72 70(tri_idx0) 52
148        77(Mesh):             TypeStruct 25(ptr)
149              78:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 30 27 18 31 32 12 12 13
150              80:      7(int) Constant 21
151              79:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 34 22 18 80 12 21 34 12 13 78
152              81:             TypePointer Function 77(Mesh)
153              82:      7(int) Constant 7
154              83:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 79 82 12
155              85:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 86 79 18 80 12 17 23
156              88:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
157              90:             TypeInt 32 1
158              92:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 91 10 23 12
159              93:     90(int) Constant 0
160              95:             TypePointer StorageBuffer 28(Mesh)
161              96:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 33 35 12
162             100:             TypePointer Function 25(ptr)
163             101:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 27 82 12
164             103:             TypeVector 36(float) 3
165             104:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 38 13
166             105:             TypePointer Function 103(fvec3)
167             106:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 104 82 12
168             108:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 109 104 18 32 12 17 23
169             116:             TypePointer PhysicalStorageBufferEXT 36(float)
170             117:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 38 26 12
171             122:      7(int) Constant 24
172             131:      7(int) Constant 25
173             142:      7(int) Constant 27
174             143:   36(float) Constant 1065353216
175             149:      7(int) Constant 28
176        14(main):           4 Function None 5
177              15:             Label
178    84(meshData):     81(ptr) Variable Function
179107(vertex_pos0):    105(ptr) Variable Function
180              75:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
181              76:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12
182              74:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
183              89:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 80 80 12 12
184              87:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 85 84(meshData) 88
185              94:      7(int) Load 70(tri_idx0)
186              97:     95(ptr) AccessChain 57(perPass_meshes) 93 94
187              98:    28(Mesh) Load 97
188              99:     25(ptr) CompositeExtract 98 0
189             102:    100(ptr) AccessChain 84(meshData) 93
190                              Store 102 99
191             111:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 32 32 12 12
192             110:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 108 107(vertex_pos0) 88
193             112:    100(ptr) AccessChain 84(meshData) 93
194             113:     25(ptr) Load 112
195             114:      7(int) Load 70(tri_idx0)
196             115:      7(int) IMul 13 114
197             118:    116(ptr) AccessChain 113 93 115
198             119:   36(float) Load 118 Aligned 4
199             121:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 122 122 12 12
200             120:    100(ptr) AccessChain 84(meshData) 93
201             123:     25(ptr) Load 120
202             124:      7(int) Load 70(tri_idx0)
203             125:      7(int) IMul 13 124
204             126:      7(int) IAdd 125 22
205             127:    116(ptr) AccessChain 123 93 126
206             128:   36(float) Load 127 Aligned 4
207             130:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 131 131 12 12
208             129:    100(ptr) AccessChain 84(meshData) 93
209             132:     25(ptr) Load 129
210             133:      7(int) Load 70(tri_idx0)
211             134:      7(int) IMul 13 133
212             135:      7(int) IAdd 134 24
213             136:    116(ptr) AccessChain 132 93 135
214             137:   36(float) Load 136 Aligned 4
215             138:  103(fvec3) CompositeConstruct 119 128 137
216             139:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 32 32 12 12
217                              Store 107(vertex_pos0) 138
218             141:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 142 142 12 12
219             140:  103(fvec3) Load 107(vertex_pos0)
220             144:   36(float) CompositeExtract 140 0
221             145:   36(float) CompositeExtract 140 1
222             146:   36(float) CompositeExtract 140 2
223             147:   60(fvec4) CompositeConstruct 144 145 146 143
224                              Store 64(out_fragColor) 147
225             148:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 149 149 12 12
226                              Return
227                              FunctionEnd