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