1spv.localAggregates.frag
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 136
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 15 40 90 98 108 134 135
10                              ExecutionMode 4 OriginUpperLeft
11                              Source GLSL 400
12                              Name 4  "main"
13                              Name 8  "s1"
14                              MemberName 8(s1) 0  "i"
15                              MemberName 8(s1) 1  "f"
16                              Name 10  "s2"
17                              MemberName 10(s2) 0  "i"
18                              MemberName 10(s2) 1  "f"
19                              MemberName 10(s2) 2  "s1_1"
20                              MemberName 10(s2) 3  "bleh"
21                              Name 12  "locals2"
22                              Name 13  "s3"
23                              MemberName 13(s3) 0  "s2_1"
24                              MemberName 13(s3) 1  "i"
25                              MemberName 13(s3) 2  "f"
26                              MemberName 13(s3) 3  "s1_1"
27                              Name 15  "foo3"
28                              Name 36  "localFArray"
29                              Name 40  "coord"
30                              Name 49  "localIArray"
31                              Name 68  "x"
32                              Name 70  "localArray"
33                              Name 75  "i"
34                              Name 84  "a"
35                              Name 90  "condition"
36                              Name 98  "color"
37                              Name 108  "gl_FragColor"
38                              Name 128  "samp2D"
39                              Name 134  "foo"
40                              Name 135  "foo2"
41                              Decorate 15(foo3) Flat
42                              Decorate 15(foo3) Location 9
43                              Decorate 40(coord) Location 0
44                              Decorate 90(condition) Flat
45                              Decorate 90(condition) Location 18
46                              Decorate 98(color) Location 1
47                              Decorate 108(gl_FragColor) Location 0
48                              Decorate 128(samp2D) DescriptorSet 0
49                              Decorate 128(samp2D) Binding 0
50                              Decorate 134(foo) Flat
51                              Decorate 134(foo) Location 2
52                              Decorate 135(foo2) Flat
53                              Decorate 135(foo2) Location 4
54               2:             TypeVoid
55               3:             TypeFunction 2
56               6:             TypeInt 32 1
57               7:             TypeFloat 32
58           8(s1):             TypeStruct 6(int) 7(float)
59               9:             TypeVector 7(float) 4
60          10(s2):             TypeStruct 6(int) 7(float) 8(s1) 9(fvec4)
61              11:             TypePointer Function 10(s2)
62          13(s3):             TypeStruct 10(s2) 6(int) 7(float) 8(s1)
63              14:             TypePointer Input 13(s3)
64        15(foo3):     14(ptr) Variable Input
65              16:      6(int) Constant 0
66              17:             TypePointer Input 10(s2)
67              20:             TypePointer Input 6(int)
68              23:             TypeBool
69              27:      6(int) Constant 2
70              28:      6(int) Constant 1
71              29:    7(float) Constant 1065353216
72              30:             TypePointer Function 7(float)
73              32:             TypeInt 32 0
74              33:     32(int) Constant 16
75              34:             TypeArray 7(float) 33
76              35:             TypePointer Function 34
77              37:      6(int) Constant 4
78              38:             TypeVector 7(float) 2
79              39:             TypePointer Input 38(fvec2)
80       40(coord):     39(ptr) Variable Input
81              41:     32(int) Constant 0
82              42:             TypePointer Input 7(float)
83              46:     32(int) Constant 8
84              47:             TypeArray 6(int) 46
85              48:             TypePointer Function 47
86              52:             TypePointer Function 6(int)
87              69:      6(int) Constant 5
88              82:      6(int) Constant 16
89              86:    7(float) Constant 0
90   90(condition):     20(ptr) Variable Input
91              96:      6(int) Constant 3
92              97:             TypePointer Input 9(fvec4)
93       98(color):     97(ptr) Variable Input
94             100:             TypePointer Function 9(fvec4)
95             102:     32(int) Constant 1
96             105:     32(int) Constant 2
97             107:             TypePointer Output 9(fvec4)
98108(gl_FragColor):    107(ptr) Variable Output
99             125:             TypeImage 7(float) 2D sampled format:Unknown
100             126:             TypeSampledImage 125
101             127:             TypePointer UniformConstant 126
102     128(samp2D):    127(ptr) Variable UniformConstant
103             133:             TypePointer Input 8(s1)
104        134(foo):    133(ptr) Variable Input
105       135(foo2):     17(ptr) Variable Input
106         4(main):           2 Function None 3
107               5:             Label
108     12(locals2):     11(ptr) Variable Function
109 36(localFArray):     35(ptr) Variable Function
110 49(localIArray):     48(ptr) Variable Function
111           68(x):     52(ptr) Variable Function
112  70(localArray):     35(ptr) Variable Function
113           75(i):     52(ptr) Variable Function
114           84(a):     35(ptr) Variable Function
115              18:     17(ptr) AccessChain 15(foo3) 16
116              19:      10(s2) Load 18
117                              Store 12(locals2) 19
118              21:     20(ptr) AccessChain 15(foo3) 16 16
119              22:      6(int) Load 21
120              24:    23(bool) SGreaterThan 22 16
121                              SelectionMerge 26 None
122                              BranchConditional 24 25 54
123              25:               Label
124              31:     30(ptr)   AccessChain 12(locals2) 27 28
125                                Store 31 29
126              43:     42(ptr)   AccessChain 40(coord) 41
127              44:    7(float)   Load 43
128              45:     30(ptr)   AccessChain 36(localFArray) 37
129                                Store 45 44
130              50:     20(ptr)   AccessChain 15(foo3) 16 16
131              51:      6(int)   Load 50
132              53:     52(ptr)   AccessChain 49(localIArray) 27
133                                Store 53 51
134                                Branch 26
135              54:               Label
136              55:     42(ptr)   AccessChain 40(coord) 41
137              56:    7(float)   Load 55
138              57:     30(ptr)   AccessChain 12(locals2) 27 28
139                                Store 57 56
140              58:     30(ptr)   AccessChain 36(localFArray) 37
141                                Store 58 29
142              59:     52(ptr)   AccessChain 49(localIArray) 27
143                                Store 59 16
144                                Branch 26
145              26:             Label
146              60:     52(ptr) AccessChain 49(localIArray) 27
147              61:      6(int) Load 60
148              62:    23(bool) IEqual 61 16
149                              SelectionMerge 64 None
150                              BranchConditional 62 63 64
151              63:               Label
152              65:     30(ptr)   AccessChain 36(localFArray) 37
153              66:    7(float)   Load 65
154              67:    7(float)   FAdd 66 29
155                                Store 65 67
156                                Branch 64
157              64:             Label
158                              Store 68(x) 69
159              71:      6(int) Load 68(x)
160              72:     42(ptr) AccessChain 40(coord) 41
161              73:    7(float) Load 72
162              74:     30(ptr) AccessChain 70(localArray) 71
163                              Store 74 73
164                              Store 75(i) 16
165                              Branch 76
166              76:             Label
167                              LoopMerge 78 79 None
168                              Branch 80
169              80:             Label
170              81:      6(int) Load 75(i)
171              83:    23(bool) SLessThan 81 82
172                              BranchConditional 83 77 78
173              77:               Label
174              85:      6(int)   Load 75(i)
175              87:     30(ptr)   AccessChain 84(a) 85
176                                Store 87 86
177                                Branch 79
178              79:               Label
179              88:      6(int)   Load 75(i)
180              89:      6(int)   IAdd 88 28
181                                Store 75(i) 89
182                                Branch 76
183              78:             Label
184              91:      6(int) Load 90(condition)
185              92:    23(bool) IEqual 91 28
186                              SelectionMerge 94 None
187                              BranchConditional 92 93 94
188              93:               Label
189              95:          34   Load 70(localArray)
190                                Store 84(a) 95
191                                Branch 94
192              94:             Label
193              99:    9(fvec4) Load 98(color)
194             101:    100(ptr) AccessChain 12(locals2) 96
195                              Store 101 99
196             103:     42(ptr) AccessChain 40(coord) 102
197             104:    7(float) Load 103
198             106:     30(ptr) AccessChain 12(locals2) 96 105
199                              Store 106 104
200             109:    100(ptr) AccessChain 12(locals2) 96
201             110:    9(fvec4) Load 109
202             111:     30(ptr) AccessChain 36(localFArray) 37
203             112:    7(float) Load 111
204             113:     30(ptr) AccessChain 12(locals2) 27 28
205             114:    7(float) Load 113
206             115:    7(float) FAdd 112 114
207             116:      6(int) Load 68(x)
208             117:     30(ptr) AccessChain 70(localArray) 116
209             118:    7(float) Load 117
210             119:    7(float) FAdd 115 118
211             120:      6(int) Load 68(x)
212             121:     30(ptr) AccessChain 84(a) 120
213             122:    7(float) Load 121
214             123:    7(float) FAdd 119 122
215             124:    9(fvec4) VectorTimesScalar 110 123
216             129:         126 Load 128(samp2D)
217             130:   38(fvec2) Load 40(coord)
218             131:    9(fvec4) ImageSampleImplicitLod 129 130
219             132:    9(fvec4) FMul 124 131
220                              Store 108(gl_FragColor) 132
221                              Return
222                              FunctionEnd
223