glslang-zig/Test/baseResults/spv.debuginfo.hlsl.comp.out
Chao Chen 979423d84f Add correct line number to OpDebugFunction and OpDebugScope for function:
1. Pull OpDebugFunction, OpDebugScope and OpDebugVariable for params out
   of makeFunctionEntry.
2. Put above in a separate function called setupDebugFunctionEntry,
   which also accept line number and set it correctly in builder.
3. Call setupDebugFunctionEntry in makeFunction. Also special case
   handle entry function since it's created ealier elsewhere.
2023-10-24 13:37:19 -07:00

1237 lines
73 KiB
Text

spv.debuginfo.hlsl.comp
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 978
Capability Shader
Extension "SPV_KHR_non_semantic_info"
2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint GLCompute 6 "main" 973
ExecutionMode 6 LocalSize 10 10 1
1: String ""
9: String "float"
12: String "uint"
29: String "springForce"
32: String "// OpModuleProcessed auto-map-locations
// OpModuleProcessed auto-map-bindings
// OpModuleProcessed entry-point main
// OpModuleProcessed client vulkan100
// OpModuleProcessed target-env vulkan1.0
// OpModuleProcessed keep-uncalled
// OpModuleProcessed hlsl-offsets
#line 1
"
41: String "p0"
45: String "p1"
49: String "restDist"
59: String "@main"
65: String "id"
73: String "dist"
85: String "int"
91: String "sphereRadius"
102: String "gravity"
107: String "particleCount"
110: String "UBO"
113: String "params"
117: String "ubo"
142: String "index"
165: String "bool"
179: String "normal"
186: String "pinned"
190: String "Particle"
195: String "@data"
199: String "particleIn"
221: String "particleOut"
246: String "force"
259: String "pos"
269: String "vel"
569: String "f"
618: String "sphereDist"
671: String "calculateNormals"
675: String "PushConstants"
678: String "pushConstants"
681: String "$Global"
721: String "a"
734: String "b"
751: String "c"
Name 6 "main"
Name 27 "springForce(vf3;vf3;f1;"
Name 24 "p0"
Name 25 "p1"
Name 26 "restDist"
Name 57 "@main(vu3;"
Name 56 "id"
Name 71 "dist"
Name 89 "UBO"
MemberName 89(UBO) 0 "deltaT"
MemberName 89(UBO) 1 "particleMass"
MemberName 89(UBO) 2 "springStiffness"
MemberName 89(UBO) 3 "damping"
MemberName 89(UBO) 4 "restDistH"
MemberName 89(UBO) 5 "restDistV"
MemberName 89(UBO) 6 "restDistD"
MemberName 89(UBO) 7 "sphereRadius"
MemberName 89(UBO) 8 "spherePos"
MemberName 89(UBO) 9 "gravity"
MemberName 89(UBO) 10 "particleCount"
Name 111 "ubo"
MemberName 111(ubo) 0 "params"
Name 119 ""
Name 140 "index"
Name 177 "Particle"
MemberName 177(Particle) 0 "pos"
MemberName 177(Particle) 1 "vel"
MemberName 177(Particle) 2 "uv"
MemberName 177(Particle) 3 "normal"
MemberName 177(Particle) 4 "pinned"
Name 193 "particleIn"
MemberName 193(particleIn) 0 "@data"
Name 201 "particleIn"
Name 217 "particleOut"
MemberName 217(particleOut) 0 "@data"
Name 223 "particleOut"
Name 244 "force"
Name 257 "pos"
Name 267 "vel"
Name 288 "param"
Name 292 "param"
Name 294 "param"
Name 318 "param"
Name 322 "param"
Name 324 "param"
Name 352 "param"
Name 356 "param"
Name 358 "param"
Name 381 "param"
Name 385 "param"
Name 387 "param"
Name 422 "param"
Name 426 "param"
Name 428 "param"
Name 458 "param"
Name 462 "param"
Name 464 "param"
Name 502 "param"
Name 506 "param"
Name 508 "param"
Name 542 "param"
Name 546 "param"
Name 548 "param"
Name 567 "f"
Name 616 "sphereDist"
Name 669 "PushConstants"
MemberName 669(PushConstants) 0 "calculateNormals"
Name 676 "$Global"
MemberName 676($Global) 0 "pushConstants"
Name 683 ""
Name 695 "normal"
Name 719 "a"
Name 732 "b"
Name 749 "c"
Name 971 "id"
Name 973 "id"
Name 975 "param"
MemberDecorate 89(UBO) 0 Offset 0
MemberDecorate 89(UBO) 1 Offset 4
MemberDecorate 89(UBO) 2 Offset 8
MemberDecorate 89(UBO) 3 Offset 12
MemberDecorate 89(UBO) 4 Offset 16
MemberDecorate 89(UBO) 5 Offset 20
MemberDecorate 89(UBO) 6 Offset 24
MemberDecorate 89(UBO) 7 Offset 28
MemberDecorate 89(UBO) 8 Offset 32
MemberDecorate 89(UBO) 9 Offset 48
MemberDecorate 89(UBO) 10 Offset 64
MemberDecorate 111(ubo) 0 Offset 0
Decorate 111(ubo) Block
Decorate 119 DescriptorSet 0
Decorate 119 Binding 2
MemberDecorate 177(Particle) 0 Offset 0
MemberDecorate 177(Particle) 1 Offset 16
MemberDecorate 177(Particle) 2 Offset 32
MemberDecorate 177(Particle) 3 Offset 48
MemberDecorate 177(Particle) 4 Offset 64
Decorate 191 ArrayStride 80
MemberDecorate 193(particleIn) 0 NonWritable
MemberDecorate 193(particleIn) 0 Offset 0
Decorate 193(particleIn) BufferBlock
Decorate 201(particleIn) DescriptorSet 0
Decorate 201(particleIn) Binding 0
Decorate 215 ArrayStride 80
MemberDecorate 217(particleOut) 0 Offset 0
Decorate 217(particleOut) BufferBlock
Decorate 223(particleOut) DescriptorSet 0
Decorate 223(particleOut) Binding 1
MemberDecorate 669(PushConstants) 0 Offset 0
MemberDecorate 676($Global) 0 Offset 0
Decorate 676($Global) Block
Decorate 683 DescriptorSet 0
Decorate 683 Binding 3
Decorate 973(id) BuiltIn GlobalInvocationId
4: TypeVoid
5: TypeFunction 4
8: TypeFloat 32
11: TypeInt 32 0
14: 11(int) Constant 32
15: 11(int) Constant 6
16: 11(int) Constant 0
13: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 14 15 16
17: 11(int) Constant 3
10: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 14 17 16
18: TypeVector 8(float) 3
19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17
20: TypePointer Function 18(fvec3)
21: TypePointer Function 8(float)
22: TypeFunction 18(fvec3) 20(ptr) 20(ptr) 21(ptr)
23: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 19 19 19 10
31: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 32
33: 11(int) Constant 75
35: 11(int) Constant 1
36: 11(int) Constant 4
37: 11(int) Constant 5
34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 35 36 31 37
30: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 29 23 31 33 16 34 29 17 33
40: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 41 19 31 33 16 30 36 35
43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
46: 11(int) Constant 2
44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 45 19 31 33 16 30 36 46
48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 49 10 31 33 16 30 36 17
51: TypeVector 11(int) 3
52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 13 17
53: TypePointer Function 51(ivec3)
54: TypeFunction 4 53(ptr)
55: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 4 52
61: 11(int) Constant 82
60: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 59 55 31 61 16 34 59 17 61
64: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 65 52 31 61 16 60 36 35
70: 11(int) Constant 76
72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 73 19 31 70 16 30 36
79: 11(int) Constant 77
82: TypeVector 8(float) 4
83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 36
84: TypeInt 32 1
86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 85 14 36 16
87: TypeVector 84(int) 2
88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 86 46
89(UBO): TypeStruct 8(float) 8(float) 8(float) 8(float) 8(float) 8(float) 8(float) 8(float) 82(fvec4) 82(fvec4) 87(ivec2)
92: 11(int) Constant 48
93: 11(int) Constant 20
90: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 91 10 31 92 93 16 16 17
94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 91 10 31 92 93 16 16 17
95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 91 10 31 92 93 16 16 17
96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 91 10 31 92 93 16 16 17
97: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 91 10 31 92 93 16 16 17
98: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 91 10 31 92 93 16 16 17
99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 91 10 31 92 93 16 16 17
100: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 91 10 31 92 93 16 16 17
103: 11(int) Constant 50
104: 11(int) Constant 16
101: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 102 83 31 103 104 16 16 17
105: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 102 83 31 103 104 16 16 17
108: 11(int) Constant 51
106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 107 88 31 108 93 16 16 17
109: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 110 35 31 79 16 34 110 16 17 90 94 95 96 97 98 99 100 101 105 106
111(ubo): TypeStruct 89(UBO)
114: 11(int) Constant 56
115: 11(int) Constant 12
112: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 113 109 31 114 115 16 16 17
116: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 117 35 31 79 16 34 117 16 17 112
118: TypePointer Uniform 111(ubo)
119: 118(ptr) Variable Uniform
121: 11(int) Constant 8
120: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 116 31 79 16 34 1 119 121
122: 84(int) Constant 0
123: 84(int) Constant 2
124: TypePointer Uniform 8(float)
138: 11(int) Constant 83
139: TypePointer Function 11(int)
141: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 142 13 31 138 16 60 36
146: 84(int) Constant 10
147: TypePointer Uniform 84(int)
156: 11(int) Constant 84
164: TypeBool
166: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
172: 11(int) Constant 85
176: 11(int) Constant 88
177(Particle): TypeStruct 82(fvec4) 82(fvec4) 82(fvec4) 82(fvec4) 8(float)
180: 11(int) Constant 30
181: 11(int) Constant 15
178: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 179 83 31 180 181 16 16 17
182: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 179 83 31 180 181 16 16 17
183: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 179 83 31 180 181 16 16 17
184: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 179 83 31 180 181 16 16 17
187: 11(int) Constant 31
188: 11(int) Constant 14
185: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 186 10 31 187 188 16 16 17
189: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 190 35 31 176 16 34 190 16 17 178 182 183 184 185
191: TypeRuntimeArray 177(Particle)
192: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 189 16
193(particleIn): TypeStruct 191
196: 11(int) Constant 35
197: 11(int) Constant 28
194: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 195 192 31 196 197 16 16 17
198: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 199 35 31 176 16 34 199 16 17 194
200: TypePointer Uniform 193(particleIn)
201(particleIn): 200(ptr) Variable Uniform
202: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 199 198 31 176 16 34 199 201(particleIn) 121
204: 84(int) Constant 4
207: 8(float) Constant 1065353216
208: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
214: 11(int) Constant 89
215: TypeRuntimeArray 177(Particle)
216: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 189 16
217(particleOut): TypeStruct 215
219: 11(int) Constant 37
218: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 195 216 31 219 180 16 16 17
220: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 221 35 31 214 16 34 221 16 17 218
222: TypePointer Uniform 217(particleOut)
223(particleOut): 222(ptr) Variable Uniform
224: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 221 220 31 214 16 34 221 223(particleOut) 121
227: TypePointer Uniform 82(fvec4)
232: 11(int) Constant 90
234: 84(int) Constant 1
235: 8(float) Constant 0
236: 82(fvec4) ConstantComposite 235 235 235 235
239: 11(int) Constant 91
243: 11(int) Constant 95
245: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 246 19 31 243 16 60 36
248: 84(int) Constant 9
256: 11(int) Constant 97
258: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 259 19 31 256 16 60 36
266: 11(int) Constant 98
268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 269 19 31 266 16 60 36
276: 11(int) Constant 102
279: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
285: 11(int) Constant 103
302: 11(int) Constant 106
309: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
315: 11(int) Constant 107
332: 11(int) Constant 110
339: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
345: 11(int) Constant 111
351: 84(int) Constant 5
366: 11(int) Constant 114
369: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
375: 11(int) Constant 115
395: 11(int) Constant 118
398: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
406: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
408: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
414: 11(int) Constant 119
421: 84(int) Constant 6
436: 11(int) Constant 122
439: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
443: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
445: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
451: 11(int) Constant 123
472: 11(int) Constant 126
479: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
487: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
489: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
495: 11(int) Constant 127
516: 11(int) Constant 130
523: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
527: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
529: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
535: 11(int) Constant 131
556: 11(int) Constant 134
557: 84(int) Constant 3
566: 11(int) Constant 137
568: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 569 19 31 566 16 60 36
577: 11(int) Constant 138
585: 8(float) Constant 1056964608
601: 11(int) Constant 139
615: 11(int) Constant 142
617: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 618 19 31 615 16 60 36
624: 84(int) Constant 8
630: 11(int) Constant 143
633: 84(int) Constant 7
636: 8(float) Constant 1008981770
638: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
644: 11(int) Constant 145
663: 11(int) Constant 147
668: 11(int) Constant 151
669(PushConstants): TypeStruct 11(int)
672: 11(int) Constant 67
673: 11(int) Constant 23
670: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 671 13 31 672 673 16 16 17
674: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 675 35 31 668 16 34 675 16 17 670
676($Global): TypeStruct 669(PushConstants)
679: 11(int) Constant 71
677: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 678 674 31 679 181 16 16 17
680: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 681 35 31 668 16 34 681 16 17 677
682: TypePointer Uniform 676($Global)
683: 682(ptr) Variable Uniform
684: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 680 31 668 16 34 1 683 121
685: TypePointer Uniform 11(int)
688: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
694: 11(int) Constant 152
696: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 179 19 31 694 16 60 36
698: 18(fvec3) ConstantComposite 235 235 235
700: 11(int) Constant 154
703: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
709: 11(int) Constant 155
712: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
718: 11(int) Constant 156
720: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 721 19 31 718 16 60 36
731: 11(int) Constant 157
733: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 734 19 31 731 16 60 36
748: 11(int) Constant 158
750: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 751 19 31 748 16 60 36
764: 11(int) Constant 159
776: 11(int) Constant 161
783: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
789: 11(int) Constant 162
801: 11(int) Constant 163
814: 11(int) Constant 164
823: 11(int) Constant 165
835: 11(int) Constant 168
842: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
848: 11(int) Constant 169
851: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
857: 11(int) Constant 170
869: 11(int) Constant 171
882: 11(int) Constant 172
891: 11(int) Constant 173
903: 11(int) Constant 175
910: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 165 14 46 16
916: 11(int) Constant 176
925: 11(int) Constant 177
938: 11(int) Constant 178
950: 11(int) Constant 179
962: 11(int) Constant 182
972: TypePointer Input 51(ivec3)
973(id): 972(ptr) Variable Input
Line 1 82 1
6(main): 4 Function None 5
7: Label
971(id): 53(ptr) Variable Function
975(param): 53(ptr) Variable Function
Line 1 82 0
974: 51(ivec3) Load 973(id)
Store 971(id) 974
976: 51(ivec3) Load 971(id)
Store 975(param) 976
977: 4 FunctionCall 57(@main(vu3;) 975(param)
Return
FunctionEnd
Line 1 75 1
27(springForce(vf3;vf3;f1;): 18(fvec3) Function None 22
24(p0): 20(ptr) FunctionParameter
25(p1): 20(ptr) FunctionParameter
26(restDist): 21(ptr) FunctionParameter
28: Label
71(dist): 20(ptr) Variable Function
38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 30
39: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 33 33 16 16
42: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 40 24(p0) 43
47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 44 25(p1) 43
50: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 48 26(restDist) 43
67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 30 27(springForce(vf3;vf3;f1;)
68: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 30
69: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 70 70 16 16
74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 72 71(dist) 43
75: 18(fvec3) Load 24(p0)
76: 18(fvec3) Load 25(p1)
77: 18(fvec3) FSub 75 76
Store 71(dist) 77
78: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 79 79 16 16
80: 18(fvec3) Load 71(dist)
81: 18(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 80
125: 124(ptr) AccessChain 119 122 123
126: 8(float) Load 125
127: 18(fvec3) VectorTimesScalar 81 126
128: 18(fvec3) Load 71(dist)
129: 8(float) ExtInst 3(GLSL.std.450) 66(Length) 128
130: 8(float) Load 26(restDist)
131: 8(float) FSub 129 130
132: 18(fvec3) VectorTimesScalar 127 131
ReturnValue 132
FunctionEnd
Line 1 82 1
57(@main(vu3;): 4 Function None 54
56(id): 53(ptr) FunctionParameter
58: Label
140(index): 139(ptr) Variable Function
244(force): 20(ptr) Variable Function
257(pos): 20(ptr) Variable Function
267(vel): 20(ptr) Variable Function
288(param): 20(ptr) Variable Function
292(param): 20(ptr) Variable Function
294(param): 21(ptr) Variable Function
318(param): 20(ptr) Variable Function
322(param): 20(ptr) Variable Function
324(param): 21(ptr) Variable Function
352(param): 20(ptr) Variable Function
356(param): 20(ptr) Variable Function
358(param): 21(ptr) Variable Function
381(param): 20(ptr) Variable Function
385(param): 20(ptr) Variable Function
387(param): 21(ptr) Variable Function
422(param): 20(ptr) Variable Function
426(param): 20(ptr) Variable Function
428(param): 21(ptr) Variable Function
458(param): 20(ptr) Variable Function
462(param): 20(ptr) Variable Function
464(param): 21(ptr) Variable Function
502(param): 20(ptr) Variable Function
506(param): 20(ptr) Variable Function
508(param): 21(ptr) Variable Function
542(param): 20(ptr) Variable Function
546(param): 20(ptr) Variable Function
548(param): 21(ptr) Variable Function
567(f): 20(ptr) Variable Function
616(sphereDist): 20(ptr) Variable Function
695(normal): 20(ptr) Variable Function
719(a): 20(ptr) Variable Function
732(b): 20(ptr) Variable Function
749(c): 20(ptr) Variable Function
62: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 61 61 16 16
66: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 64 56(id) 43
135: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 60 57(@main(vu3;)
136: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
137: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 138 138 16 16
143: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 141 140(index) 43
144: 139(ptr) AccessChain 56(id) 35
145: 11(int) Load 144
148: 147(ptr) AccessChain 119 122 146 16
149: 84(int) Load 148
150: 11(int) Bitcast 149
151: 11(int) IMul 145 150
152: 139(ptr) AccessChain 56(id) 16
153: 11(int) Load 152
154: 11(int) IAdd 151 153
Store 140(index) 154
155: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 156 156 16 16
157: 11(int) Load 140(index)
158: 147(ptr) AccessChain 119 122 146 16
159: 84(int) Load 158
160: 147(ptr) AccessChain 119 122 146 35
161: 84(int) Load 160
162: 84(int) IMul 159 161
163: 11(int) Bitcast 162
167: 164(bool) UGreaterThan 157 163
SelectionMerge 169 None
BranchConditional 167 168 169
168: Label
170: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
171: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 172 172 16 16
Return
169: Label
174: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
175: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 176 176 16 16
203: 11(int) Load 140(index)
205: 124(ptr) AccessChain 201(particleIn) 122 203 204
206: 8(float) Load 205
209: 164(bool) FOrdEqual 206 207
SelectionMerge 211 None
BranchConditional 209 210 211
210: Label
212: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
213: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 214 214 16 16
225: 11(int) Load 140(index)
226: 11(int) Load 140(index)
228: 227(ptr) AccessChain 223(particleOut) 122 226 122
229: 82(fvec4) Load 228
230: 227(ptr) AccessChain 223(particleOut) 122 225 122
Store 230 229
231: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 232 232 16 16
233: 11(int) Load 140(index)
237: 227(ptr) AccessChain 223(particleOut) 122 233 234
Store 237 236
238: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 239 239 16 16
Return
211: Label
241: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
242: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 243 243 16 16
247: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 245 244(force) 43
249: 227(ptr) AccessChain 119 122 248
250: 82(fvec4) Load 249
251: 18(fvec3) VectorShuffle 250 250 0 1 2
252: 124(ptr) AccessChain 119 122 234
253: 8(float) Load 252
254: 18(fvec3) VectorTimesScalar 251 253
Store 244(force) 254
255: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 256 256 16 16
260: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 258 257(pos) 43
261: 11(int) Load 140(index)
262: 227(ptr) AccessChain 201(particleIn) 122 261 122
263: 82(fvec4) Load 262
264: 18(fvec3) VectorShuffle 263 263 0 1 2
Store 257(pos) 264
265: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 266 266 16 16
270: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 268 267(vel) 43
271: 11(int) Load 140(index)
272: 227(ptr) AccessChain 201(particleIn) 122 271 234
273: 82(fvec4) Load 272
274: 18(fvec3) VectorShuffle 273 273 0 1 2
Store 267(vel) 274
275: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 276 276 16 16
277: 139(ptr) AccessChain 56(id) 16
278: 11(int) Load 277
280: 164(bool) UGreaterThan 278 16
SelectionMerge 282 None
BranchConditional 280 281 282
281: Label
283: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
284: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 285 285 16 16
286: 11(int) Load 140(index)
287: 11(int) ISub 286 35
289: 227(ptr) AccessChain 201(particleIn) 122 287 122
290: 82(fvec4) Load 289
291: 18(fvec3) VectorShuffle 290 290 0 1 2
Store 288(param) 291
293: 18(fvec3) Load 257(pos)
Store 292(param) 293
295: 124(ptr) AccessChain 119 122 204
296: 8(float) Load 295
Store 294(param) 296
297: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 288(param) 292(param) 294(param)
298: 18(fvec3) Load 244(force)
299: 18(fvec3) FAdd 298 297
Store 244(force) 299
Branch 282
282: Label
300: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
301: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 302 302 16 16
303: 139(ptr) AccessChain 56(id) 16
304: 11(int) Load 303
305: 147(ptr) AccessChain 119 122 146 16
306: 84(int) Load 305
307: 84(int) ISub 306 234
308: 11(int) Bitcast 307
310: 164(bool) ULessThan 304 308
SelectionMerge 312 None
BranchConditional 310 311 312
311: Label
313: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
314: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 315 315 16 16
316: 11(int) Load 140(index)
317: 11(int) IAdd 316 35
319: 227(ptr) AccessChain 201(particleIn) 122 317 122
320: 82(fvec4) Load 319
321: 18(fvec3) VectorShuffle 320 320 0 1 2
Store 318(param) 321
323: 18(fvec3) Load 257(pos)
Store 322(param) 323
325: 124(ptr) AccessChain 119 122 204
326: 8(float) Load 325
Store 324(param) 326
327: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 318(param) 322(param) 324(param)
328: 18(fvec3) Load 244(force)
329: 18(fvec3) FAdd 328 327
Store 244(force) 329
Branch 312
312: Label
330: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
331: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 332 332 16 16
333: 139(ptr) AccessChain 56(id) 35
334: 11(int) Load 333
335: 147(ptr) AccessChain 119 122 146 35
336: 84(int) Load 335
337: 84(int) ISub 336 234
338: 11(int) Bitcast 337
340: 164(bool) ULessThan 334 338
SelectionMerge 342 None
BranchConditional 340 341 342
341: Label
343: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
344: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 345 345 16 16
346: 11(int) Load 140(index)
347: 147(ptr) AccessChain 119 122 146 16
348: 84(int) Load 347
349: 11(int) Bitcast 348
350: 11(int) IAdd 346 349
353: 227(ptr) AccessChain 201(particleIn) 122 350 122
354: 82(fvec4) Load 353
355: 18(fvec3) VectorShuffle 354 354 0 1 2
Store 352(param) 355
357: 18(fvec3) Load 257(pos)
Store 356(param) 357
359: 124(ptr) AccessChain 119 122 351
360: 8(float) Load 359
Store 358(param) 360
361: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 352(param) 356(param) 358(param)
362: 18(fvec3) Load 244(force)
363: 18(fvec3) FAdd 362 361
Store 244(force) 363
Branch 342
342: Label
364: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
365: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 366 366 16 16
367: 139(ptr) AccessChain 56(id) 35
368: 11(int) Load 367
370: 164(bool) UGreaterThan 368 16
SelectionMerge 372 None
BranchConditional 370 371 372
371: Label
373: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
374: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 375 375 16 16
376: 11(int) Load 140(index)
377: 147(ptr) AccessChain 119 122 146 16
378: 84(int) Load 377
379: 11(int) Bitcast 378
380: 11(int) ISub 376 379
382: 227(ptr) AccessChain 201(particleIn) 122 380 122
383: 82(fvec4) Load 382
384: 18(fvec3) VectorShuffle 383 383 0 1 2
Store 381(param) 384
386: 18(fvec3) Load 257(pos)
Store 385(param) 386
388: 124(ptr) AccessChain 119 122 351
389: 8(float) Load 388
Store 387(param) 389
390: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 381(param) 385(param) 387(param)
391: 18(fvec3) Load 244(force)
392: 18(fvec3) FAdd 391 390
Store 244(force) 392
Branch 372
372: Label
393: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
394: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 395 395 16 16
396: 139(ptr) AccessChain 56(id) 16
397: 11(int) Load 396
399: 164(bool) UGreaterThan 397 16
400: 139(ptr) AccessChain 56(id) 35
401: 11(int) Load 400
402: 147(ptr) AccessChain 119 122 146 35
403: 84(int) Load 402
404: 84(int) ISub 403 234
405: 11(int) Bitcast 404
407: 164(bool) ULessThan 401 405
409: 164(bool) LogicalAnd 399 407
SelectionMerge 411 None
BranchConditional 409 410 411
410: Label
412: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
413: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 414 414 16 16
415: 11(int) Load 140(index)
416: 147(ptr) AccessChain 119 122 146 16
417: 84(int) Load 416
418: 11(int) Bitcast 417
419: 11(int) IAdd 415 418
420: 11(int) ISub 419 35
423: 227(ptr) AccessChain 201(particleIn) 122 420 122
424: 82(fvec4) Load 423
425: 18(fvec3) VectorShuffle 424 424 0 1 2
Store 422(param) 425
427: 18(fvec3) Load 257(pos)
Store 426(param) 427
429: 124(ptr) AccessChain 119 122 421
430: 8(float) Load 429
Store 428(param) 430
431: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 422(param) 426(param) 428(param)
432: 18(fvec3) Load 244(force)
433: 18(fvec3) FAdd 432 431
Store 244(force) 433
Branch 411
411: Label
434: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
435: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 436 436 16 16
437: 139(ptr) AccessChain 56(id) 16
438: 11(int) Load 437
440: 164(bool) UGreaterThan 438 16
441: 139(ptr) AccessChain 56(id) 35
442: 11(int) Load 441
444: 164(bool) UGreaterThan 442 16
446: 164(bool) LogicalAnd 440 444
SelectionMerge 448 None
BranchConditional 446 447 448
447: Label
449: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
450: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 451 451 16 16
452: 11(int) Load 140(index)
453: 147(ptr) AccessChain 119 122 146 16
454: 84(int) Load 453
455: 11(int) Bitcast 454
456: 11(int) ISub 452 455
457: 11(int) ISub 456 35
459: 227(ptr) AccessChain 201(particleIn) 122 457 122
460: 82(fvec4) Load 459
461: 18(fvec3) VectorShuffle 460 460 0 1 2
Store 458(param) 461
463: 18(fvec3) Load 257(pos)
Store 462(param) 463
465: 124(ptr) AccessChain 119 122 421
466: 8(float) Load 465
Store 464(param) 466
467: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 458(param) 462(param) 464(param)
468: 18(fvec3) Load 244(force)
469: 18(fvec3) FAdd 468 467
Store 244(force) 469
Branch 448
448: Label
470: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
471: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 472 472 16 16
473: 139(ptr) AccessChain 56(id) 16
474: 11(int) Load 473
475: 147(ptr) AccessChain 119 122 146 16
476: 84(int) Load 475
477: 84(int) ISub 476 234
478: 11(int) Bitcast 477
480: 164(bool) ULessThan 474 478
481: 139(ptr) AccessChain 56(id) 35
482: 11(int) Load 481
483: 147(ptr) AccessChain 119 122 146 35
484: 84(int) Load 483
485: 84(int) ISub 484 234
486: 11(int) Bitcast 485
488: 164(bool) ULessThan 482 486
490: 164(bool) LogicalAnd 480 488
SelectionMerge 492 None
BranchConditional 490 491 492
491: Label
493: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
494: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 495 495 16 16
496: 11(int) Load 140(index)
497: 147(ptr) AccessChain 119 122 146 16
498: 84(int) Load 497
499: 11(int) Bitcast 498
500: 11(int) IAdd 496 499
501: 11(int) IAdd 500 35
503: 227(ptr) AccessChain 201(particleIn) 122 501 122
504: 82(fvec4) Load 503
505: 18(fvec3) VectorShuffle 504 504 0 1 2
Store 502(param) 505
507: 18(fvec3) Load 257(pos)
Store 506(param) 507
509: 124(ptr) AccessChain 119 122 421
510: 8(float) Load 509
Store 508(param) 510
511: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 502(param) 506(param) 508(param)
512: 18(fvec3) Load 244(force)
513: 18(fvec3) FAdd 512 511
Store 244(force) 513
Branch 492
492: Label
514: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
515: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 516 516 16 16
517: 139(ptr) AccessChain 56(id) 16
518: 11(int) Load 517
519: 147(ptr) AccessChain 119 122 146 16
520: 84(int) Load 519
521: 84(int) ISub 520 234
522: 11(int) Bitcast 521
524: 164(bool) ULessThan 518 522
525: 139(ptr) AccessChain 56(id) 35
526: 11(int) Load 525
528: 164(bool) UGreaterThan 526 16
530: 164(bool) LogicalAnd 524 528
SelectionMerge 532 None
BranchConditional 530 531 532
531: Label
533: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
534: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 535 535 16 16
536: 11(int) Load 140(index)
537: 147(ptr) AccessChain 119 122 146 16
538: 84(int) Load 537
539: 11(int) Bitcast 538
540: 11(int) ISub 536 539
541: 11(int) IAdd 540 35
543: 227(ptr) AccessChain 201(particleIn) 122 541 122
544: 82(fvec4) Load 543
545: 18(fvec3) VectorShuffle 544 544 0 1 2
Store 542(param) 545
547: 18(fvec3) Load 257(pos)
Store 546(param) 547
549: 124(ptr) AccessChain 119 122 421
550: 8(float) Load 549
Store 548(param) 550
551: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 542(param) 546(param) 548(param)
552: 18(fvec3) Load 244(force)
553: 18(fvec3) FAdd 552 551
Store 244(force) 553
Branch 532
532: Label
554: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
555: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 556 556 16 16
558: 124(ptr) AccessChain 119 122 557
559: 8(float) Load 558
560: 8(float) FNegate 559
561: 18(fvec3) Load 267(vel)
562: 18(fvec3) VectorTimesScalar 561 560
563: 18(fvec3) Load 244(force)
564: 18(fvec3) FAdd 563 562
Store 244(force) 564
565: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 566 566 16 16
570: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 568 567(f) 43
571: 18(fvec3) Load 244(force)
572: 124(ptr) AccessChain 119 122 234
573: 8(float) Load 572
574: 8(float) FDiv 207 573
575: 18(fvec3) VectorTimesScalar 571 574
Store 567(f) 575
576: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 577 577 16 16
578: 11(int) Load 140(index)
579: 18(fvec3) Load 257(pos)
580: 18(fvec3) Load 267(vel)
581: 124(ptr) AccessChain 119 122 122
582: 8(float) Load 581
583: 18(fvec3) VectorTimesScalar 580 582
584: 18(fvec3) FAdd 579 583
586: 18(fvec3) Load 567(f)
587: 18(fvec3) VectorTimesScalar 586 585
588: 124(ptr) AccessChain 119 122 122
589: 8(float) Load 588
590: 18(fvec3) VectorTimesScalar 587 589
591: 124(ptr) AccessChain 119 122 122
592: 8(float) Load 591
593: 18(fvec3) VectorTimesScalar 590 592
594: 18(fvec3) FAdd 584 593
595: 8(float) CompositeExtract 594 0
596: 8(float) CompositeExtract 594 1
597: 8(float) CompositeExtract 594 2
598: 82(fvec4) CompositeConstruct 595 596 597 207
599: 227(ptr) AccessChain 223(particleOut) 122 578 122
Store 599 598
600: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 601 601 16 16
602: 11(int) Load 140(index)
603: 18(fvec3) Load 267(vel)
604: 18(fvec3) Load 567(f)
605: 124(ptr) AccessChain 119 122 122
606: 8(float) Load 605
607: 18(fvec3) VectorTimesScalar 604 606
608: 18(fvec3) FAdd 603 607
609: 8(float) CompositeExtract 608 0
610: 8(float) CompositeExtract 608 1
611: 8(float) CompositeExtract 608 2
612: 82(fvec4) CompositeConstruct 609 610 611 235
613: 227(ptr) AccessChain 223(particleOut) 122 602 234
Store 613 612
614: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 615 615 16 16
619: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 617 616(sphereDist) 43
620: 11(int) Load 140(index)
621: 227(ptr) AccessChain 223(particleOut) 122 620 122
622: 82(fvec4) Load 621
623: 18(fvec3) VectorShuffle 622 622 0 1 2
625: 227(ptr) AccessChain 119 122 624
626: 82(fvec4) Load 625
627: 18(fvec3) VectorShuffle 626 626 0 1 2
628: 18(fvec3) FSub 623 627
Store 616(sphereDist) 628
629: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 630 630 16 16
631: 18(fvec3) Load 616(sphereDist)
632: 8(float) ExtInst 3(GLSL.std.450) 66(Length) 631
634: 124(ptr) AccessChain 119 122 633
635: 8(float) Load 634
637: 8(float) FAdd 635 636
639: 164(bool) FOrdLessThan 632 637
SelectionMerge 641 None
BranchConditional 639 640 641
640: Label
642: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
643: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 644 644 16 16
645: 11(int) Load 140(index)
646: 227(ptr) AccessChain 119 122 624
647: 82(fvec4) Load 646
648: 18(fvec3) VectorShuffle 647 647 0 1 2
649: 18(fvec3) Load 616(sphereDist)
650: 18(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 649
651: 124(ptr) AccessChain 119 122 633
652: 8(float) Load 651
653: 8(float) FAdd 652 636
654: 18(fvec3) VectorTimesScalar 650 653
655: 18(fvec3) FAdd 648 654
656: 124(ptr) AccessChain 223(particleOut) 122 645 122 16
657: 8(float) CompositeExtract 655 0
Store 656 657
658: 124(ptr) AccessChain 223(particleOut) 122 645 122 35
659: 8(float) CompositeExtract 655 1
Store 658 659
660: 124(ptr) AccessChain 223(particleOut) 122 645 122 46
661: 8(float) CompositeExtract 655 2
Store 660 661
662: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 663 663 16 16
664: 11(int) Load 140(index)
665: 227(ptr) AccessChain 223(particleOut) 122 664 234
Store 665 236
Branch 641
641: Label
666: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
667: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 668 668 16 16
686: 685(ptr) AccessChain 683 122 122
687: 11(int) Load 686
689: 164(bool) IEqual 687 35
SelectionMerge 691 None
BranchConditional 689 690 691
690: Label
692: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
693: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 694 694 16 16
697: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 696 695(normal) 43
Store 695(normal) 698
699: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 700 700 16 16
701: 139(ptr) AccessChain 56(id) 35
702: 11(int) Load 701
704: 164(bool) UGreaterThan 702 16
SelectionMerge 706 None
BranchConditional 704 705 706
705: Label
707: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
708: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 709 709 16 16
710: 139(ptr) AccessChain 56(id) 16
711: 11(int) Load 710
713: 164(bool) UGreaterThan 711 16
SelectionMerge 715 None
BranchConditional 713 714 715
714: Label
716: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
717: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 718 718 16 16
722: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 720 719(a) 43
723: 11(int) Load 140(index)
724: 11(int) ISub 723 35
725: 227(ptr) AccessChain 201(particleIn) 122 724 122
726: 82(fvec4) Load 725
727: 18(fvec3) VectorShuffle 726 726 0 1 2
728: 18(fvec3) Load 257(pos)
729: 18(fvec3) FSub 727 728
Store 719(a) 729
730: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 731 731 16 16
735: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 733 732(b) 43
736: 11(int) Load 140(index)
737: 147(ptr) AccessChain 119 122 146 16
738: 84(int) Load 737
739: 11(int) Bitcast 738
740: 11(int) ISub 736 739
741: 11(int) ISub 740 35
742: 227(ptr) AccessChain 201(particleIn) 122 741 122
743: 82(fvec4) Load 742
744: 18(fvec3) VectorShuffle 743 743 0 1 2
745: 18(fvec3) Load 257(pos)
746: 18(fvec3) FSub 744 745
Store 732(b) 746
747: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 748 748 16 16
752: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 750 749(c) 43
753: 11(int) Load 140(index)
754: 147(ptr) AccessChain 119 122 146 16
755: 84(int) Load 754
756: 11(int) Bitcast 755
757: 11(int) ISub 753 756
758: 227(ptr) AccessChain 201(particleIn) 122 757 122
759: 82(fvec4) Load 758
760: 18(fvec3) VectorShuffle 759 759 0 1 2
761: 18(fvec3) Load 257(pos)
762: 18(fvec3) FSub 760 761
Store 749(c) 762
763: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 764 764 16 16
765: 18(fvec3) Load 719(a)
766: 18(fvec3) Load 732(b)
767: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 765 766
768: 18(fvec3) Load 732(b)
769: 18(fvec3) Load 749(c)
770: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 768 769
771: 18(fvec3) FAdd 767 770
772: 18(fvec3) Load 695(normal)
773: 18(fvec3) FAdd 772 771
Store 695(normal) 773
Branch 715
715: Label
774: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
775: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 776 776 16 16
777: 139(ptr) AccessChain 56(id) 16
778: 11(int) Load 777
779: 147(ptr) AccessChain 119 122 146 16
780: 84(int) Load 779
781: 84(int) ISub 780 234
782: 11(int) Bitcast 781
784: 164(bool) ULessThan 778 782
SelectionMerge 786 None
BranchConditional 784 785 786
785: Label
787: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
788: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 789 789 16 16
790: 11(int) Load 140(index)
791: 147(ptr) AccessChain 119 122 146 16
792: 84(int) Load 791
793: 11(int) Bitcast 792
794: 11(int) ISub 790 793
795: 227(ptr) AccessChain 201(particleIn) 122 794 122
796: 82(fvec4) Load 795
797: 18(fvec3) VectorShuffle 796 796 0 1 2
798: 18(fvec3) Load 257(pos)
799: 18(fvec3) FSub 797 798
Store 719(a) 799
800: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 801 801 16 16
802: 11(int) Load 140(index)
803: 147(ptr) AccessChain 119 122 146 16
804: 84(int) Load 803
805: 11(int) Bitcast 804
806: 11(int) ISub 802 805
807: 11(int) IAdd 806 35
808: 227(ptr) AccessChain 201(particleIn) 122 807 122
809: 82(fvec4) Load 808
810: 18(fvec3) VectorShuffle 809 809 0 1 2
811: 18(fvec3) Load 257(pos)
812: 18(fvec3) FSub 810 811
Store 732(b) 812
813: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 814 814 16 16
815: 11(int) Load 140(index)
816: 11(int) IAdd 815 35
817: 227(ptr) AccessChain 201(particleIn) 122 816 122
818: 82(fvec4) Load 817
819: 18(fvec3) VectorShuffle 818 818 0 1 2
820: 18(fvec3) Load 257(pos)
821: 18(fvec3) FSub 819 820
Store 749(c) 821
822: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 823 823 16 16
824: 18(fvec3) Load 719(a)
825: 18(fvec3) Load 732(b)
826: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 824 825
827: 18(fvec3) Load 732(b)
828: 18(fvec3) Load 749(c)
829: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 827 828
830: 18(fvec3) FAdd 826 829
831: 18(fvec3) Load 695(normal)
832: 18(fvec3) FAdd 831 830
Store 695(normal) 832
Branch 786
786: Label
Branch 706
706: Label
833: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
834: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 835 835 16 16
836: 139(ptr) AccessChain 56(id) 35
837: 11(int) Load 836
838: 147(ptr) AccessChain 119 122 146 35
839: 84(int) Load 838
840: 84(int) ISub 839 234
841: 11(int) Bitcast 840
843: 164(bool) ULessThan 837 841
SelectionMerge 845 None
BranchConditional 843 844 845
844: Label
846: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
847: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 848 848 16 16
849: 139(ptr) AccessChain 56(id) 16
850: 11(int) Load 849
852: 164(bool) UGreaterThan 850 16
SelectionMerge 854 None
BranchConditional 852 853 854
853: Label
855: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
856: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 857 857 16 16
858: 11(int) Load 140(index)
859: 147(ptr) AccessChain 119 122 146 16
860: 84(int) Load 859
861: 11(int) Bitcast 860
862: 11(int) IAdd 858 861
863: 227(ptr) AccessChain 201(particleIn) 122 862 122
864: 82(fvec4) Load 863
865: 18(fvec3) VectorShuffle 864 864 0 1 2
866: 18(fvec3) Load 257(pos)
867: 18(fvec3) FSub 865 866
Store 719(a) 867
868: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 869 869 16 16
870: 11(int) Load 140(index)
871: 147(ptr) AccessChain 119 122 146 16
872: 84(int) Load 871
873: 11(int) Bitcast 872
874: 11(int) IAdd 870 873
875: 11(int) ISub 874 35
876: 227(ptr) AccessChain 201(particleIn) 122 875 122
877: 82(fvec4) Load 876
878: 18(fvec3) VectorShuffle 877 877 0 1 2
879: 18(fvec3) Load 257(pos)
880: 18(fvec3) FSub 878 879
Store 732(b) 880
881: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 882 882 16 16
883: 11(int) Load 140(index)
884: 11(int) ISub 883 35
885: 227(ptr) AccessChain 201(particleIn) 122 884 122
886: 82(fvec4) Load 885
887: 18(fvec3) VectorShuffle 886 886 0 1 2
888: 18(fvec3) Load 257(pos)
889: 18(fvec3) FSub 887 888
Store 749(c) 889
890: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 891 891 16 16
892: 18(fvec3) Load 719(a)
893: 18(fvec3) Load 732(b)
894: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 892 893
895: 18(fvec3) Load 732(b)
896: 18(fvec3) Load 749(c)
897: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 895 896
898: 18(fvec3) FAdd 894 897
899: 18(fvec3) Load 695(normal)
900: 18(fvec3) FAdd 899 898
Store 695(normal) 900
Branch 854
854: Label
901: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
902: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 903 903 16 16
904: 139(ptr) AccessChain 56(id) 16
905: 11(int) Load 904
906: 147(ptr) AccessChain 119 122 146 16
907: 84(int) Load 906
908: 84(int) ISub 907 234
909: 11(int) Bitcast 908
911: 164(bool) ULessThan 905 909
SelectionMerge 913 None
BranchConditional 911 912 913
912: Label
914: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
915: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 916 916 16 16
917: 11(int) Load 140(index)
918: 11(int) IAdd 917 35
919: 227(ptr) AccessChain 201(particleIn) 122 918 122
920: 82(fvec4) Load 919
921: 18(fvec3) VectorShuffle 920 920 0 1 2
922: 18(fvec3) Load 257(pos)
923: 18(fvec3) FSub 921 922
Store 719(a) 923
924: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 925 925 16 16
926: 11(int) Load 140(index)
927: 147(ptr) AccessChain 119 122 146 16
928: 84(int) Load 927
929: 11(int) Bitcast 928
930: 11(int) IAdd 926 929
931: 11(int) IAdd 930 35
932: 227(ptr) AccessChain 201(particleIn) 122 931 122
933: 82(fvec4) Load 932
934: 18(fvec3) VectorShuffle 933 933 0 1 2
935: 18(fvec3) Load 257(pos)
936: 18(fvec3) FSub 934 935
Store 732(b) 936
937: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 938 938 16 16
939: 11(int) Load 140(index)
940: 147(ptr) AccessChain 119 122 146 16
941: 84(int) Load 940
942: 11(int) Bitcast 941
943: 11(int) IAdd 939 942
944: 227(ptr) AccessChain 201(particleIn) 122 943 122
945: 82(fvec4) Load 944
946: 18(fvec3) VectorShuffle 945 945 0 1 2
947: 18(fvec3) Load 257(pos)
948: 18(fvec3) FSub 946 947
Store 749(c) 948
949: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 950 950 16 16
951: 18(fvec3) Load 719(a)
952: 18(fvec3) Load 732(b)
953: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 951 952
954: 18(fvec3) Load 732(b)
955: 18(fvec3) Load 749(c)
956: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 954 955
957: 18(fvec3) FAdd 953 956
958: 18(fvec3) Load 695(normal)
959: 18(fvec3) FAdd 958 957
Store 695(normal) 959
Branch 913
913: Label
Branch 845
845: Label
960: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
961: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 962 962 16 16
963: 11(int) Load 140(index)
964: 18(fvec3) Load 695(normal)
965: 18(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 964
966: 8(float) CompositeExtract 965 0
967: 8(float) CompositeExtract 965 1
968: 8(float) CompositeExtract 965 2
969: 82(fvec4) CompositeConstruct 966 967 968 235
970: 227(ptr) AccessChain 223(particleOut) 122 963 557
Store 970 969
Branch 691
691: Label
Return
FunctionEnd