blob: 0e7d9577ccac6fb0b2b1604f22192c182adbacf7 [file] [log] [blame]
John Kessenichcc16fa02015-12-10 18:01:54 -07001spv.matrix2.frag
John Kessenich2b5ea9f2018-01-31 18:35:56 -07002// Module Version 10000
John Kessenich71b5da62018-02-06 08:06:36 -07003// Generated by (magic number): 80004
John Kessenich7a53f762016-01-20 11:19:27 -07004// Id's are bound by 221
John Kessenich04bb8a02015-12-12 12:28:14 -07005
6 Capability Shader
7 1: ExtInstImport "GLSL.std.450"
8 MemoryModel Logical GLSL450
John Kessenich7a53f762016-01-20 11:19:27 -07009 EntryPoint Fragment 4 "main" 12 16 37 38 65 87 147 158 181 218 219 220
John Kessenich6c292d32016-02-15 20:58:50 -070010 ExecutionMode 4 OriginUpperLeft
John Kessenich04bb8a02015-12-12 12:28:14 -070011 Source GLSL 150
12 Name 4 "main"
13 Name 10 "m34"
14 Name 12 "v"
15 Name 16 "u"
16 Name 37 "FragColor"
17 Name 38 "Color"
18 Name 63 "m44"
19 Name 65 "un34"
20 Name 87 "um43"
John Kessenich7a53f762016-01-20 11:19:27 -070021 Name 147 "um4"
22 Name 156 "inv"
23 Name 158 "um2"
24 Name 179 "inv3"
25 Name 181 "um3"
26 Name 190 "inv4"
27 Name 218 "colorTransform"
28 Name 219 "m"
29 Name 220 "n"
John Kessenich04bb8a02015-12-12 12:28:14 -070030 2: TypeVoid
31 3: TypeFunction 2
32 6: TypeFloat 32
33 7: TypeVector 6(float) 4
34 8: TypeMatrix 7(fvec4) 3
35 9: TypePointer Function 8
36 11: TypePointer Input 7(fvec4)
37 12(v): 11(ptr) Variable Input
38 14: TypeVector 6(float) 3
39 15: TypePointer Input 14(fvec3)
40 16(u): 15(ptr) Variable Input
41 19: 6(float) Constant 1082759578
42 20: 6(float) Constant 0
43 21: 7(fvec4) ConstantComposite 19 20 20 20
44 22: 7(fvec4) ConstantComposite 20 19 20 20
45 23: 7(fvec4) ConstantComposite 20 20 19 20
46 24: 8 ConstantComposite 21 22 23
47 36: TypePointer Output 7(fvec4)
48 37(FragColor): 36(ptr) Variable Output
49 38(Color): 15(ptr) Variable Input
50 40: 6(float) Constant 1065353216
51 54: TypeInt 32 0
52 55: 54(int) Constant 0
53 56: TypePointer Input 6(float)
54 61: TypeMatrix 7(fvec4) 4
55 62: TypePointer Function 61
56 64: TypePointer Input 8
57 65(un34): 64(ptr) Variable Input
58 85: TypeMatrix 14(fvec3) 4
59 86: TypePointer Input 85
60 87(um43): 86(ptr) Variable Input
John Kessenich7a53f762016-01-20 11:19:27 -070061 146: TypePointer Input 61
62 147(um4): 146(ptr) Variable Input
63 153: TypeVector 6(float) 2
64 154: TypeMatrix 153(fvec2) 2
65 155: TypePointer Function 154
66 157: TypePointer Input 154
67 158(um2): 157(ptr) Variable Input
68 161: TypeInt 32 1
69 162: 161(int) Constant 0
70 163: TypePointer Function 6(float)
71 166: 161(int) Constant 1
72 169: 54(int) Constant 1
73 177: TypeMatrix 14(fvec3) 3
74 178: TypePointer Function 177
75 180: TypePointer Input 177
76 181(um3): 180(ptr) Variable Input
77 184: 161(int) Constant 2
78 210: 54(int) Constant 3
79 211: TypePointer Output 6(float)
80218(colorTransform): 180(ptr) Variable Input
81 219(m): 146(ptr) Variable Input
82 220(n): 146(ptr) Variable Input
John Kessenich04bb8a02015-12-12 12:28:14 -070083 4(main): 2 Function None 3
84 5: Label
85 10(m34): 9(ptr) Variable Function
86 63(m44): 62(ptr) Variable Function
John Kessenich7a53f762016-01-20 11:19:27 -070087 156(inv): 155(ptr) Variable Function
88 179(inv3): 178(ptr) Variable Function
89 190(inv4): 62(ptr) Variable Function
John Kessenich04bb8a02015-12-12 12:28:14 -070090 13: 7(fvec4) Load 12(v)
91 17: 14(fvec3) Load 16(u)
92 18: 8 OuterProduct 13 17
93 Store 10(m34) 18
94 25: 8 Load 10(m34)
95 26: 7(fvec4) CompositeExtract 25 0
96 27: 7(fvec4) CompositeExtract 24 0
97 28: 7(fvec4) FAdd 26 27
98 29: 7(fvec4) CompositeExtract 25 1
99 30: 7(fvec4) CompositeExtract 24 1
100 31: 7(fvec4) FAdd 29 30
101 32: 7(fvec4) CompositeExtract 25 2
102 33: 7(fvec4) CompositeExtract 24 2
103 34: 7(fvec4) FAdd 32 33
104 35: 8 CompositeConstruct 28 31 34
105 Store 10(m34) 35
106 39: 14(fvec3) Load 38(Color)
107 41: 6(float) CompositeExtract 39 0
108 42: 6(float) CompositeExtract 39 1
109 43: 6(float) CompositeExtract 39 2
110 44: 7(fvec4) CompositeConstruct 41 42 43 40
111 Store 37(FragColor) 44
112 45: 7(fvec4) Load 37(FragColor)
113 46: 8 Load 10(m34)
114 47: 14(fvec3) VectorTimesMatrix 45 46
115 48: 6(float) CompositeExtract 47 0
116 49: 6(float) CompositeExtract 47 1
117 50: 6(float) CompositeExtract 47 2
118 51: 7(fvec4) CompositeConstruct 48 49 50 40
119 52: 7(fvec4) Load 37(FragColor)
120 53: 7(fvec4) FMul 52 51
121 Store 37(FragColor) 53
122 57: 56(ptr) AccessChain 12(v) 55
123 58: 6(float) Load 57
124 59: 8 Load 10(m34)
125 60: 8 MatrixTimesScalar 59 58
126 Store 10(m34) 60
127 66: 8 Load 65(un34)
128 67: 6(float) CompositeExtract 66 0 0
129 68: 6(float) CompositeExtract 66 0 1
130 69: 6(float) CompositeExtract 66 0 2
131 70: 6(float) CompositeExtract 66 0 3
132 71: 6(float) CompositeExtract 66 1 0
133 72: 6(float) CompositeExtract 66 1 1
134 73: 6(float) CompositeExtract 66 1 2
135 74: 6(float) CompositeExtract 66 1 3
136 75: 6(float) CompositeExtract 66 2 0
137 76: 6(float) CompositeExtract 66 2 1
138 77: 6(float) CompositeExtract 66 2 2
139 78: 6(float) CompositeExtract 66 2 3
140 79: 7(fvec4) CompositeConstruct 67 68 69 70
141 80: 7(fvec4) CompositeConstruct 71 72 73 74
142 81: 7(fvec4) CompositeConstruct 75 76 77 78
143 82: 7(fvec4) CompositeConstruct 20 20 20 40
144 83: 61 CompositeConstruct 79 80 81 82
145 Store 63(m44) 83
146 84: 8 Load 10(m34)
147 88: 85 Load 87(um43)
148 89: 61 MatrixTimesMatrix 84 88
149 90: 61 Load 63(m44)
150 91: 7(fvec4) CompositeExtract 90 0
151 92: 7(fvec4) CompositeExtract 89 0
152 93: 7(fvec4) FAdd 91 92
153 94: 7(fvec4) CompositeExtract 90 1
154 95: 7(fvec4) CompositeExtract 89 1
155 96: 7(fvec4) FAdd 94 95
156 97: 7(fvec4) CompositeExtract 90 2
157 98: 7(fvec4) CompositeExtract 89 2
158 99: 7(fvec4) FAdd 97 98
159 100: 7(fvec4) CompositeExtract 90 3
160 101: 7(fvec4) CompositeExtract 89 3
161 102: 7(fvec4) FAdd 100 101
162 103: 61 CompositeConstruct 93 96 99 102
163 Store 63(m44) 103
164 104: 61 Load 63(m44)
John Kessenich7a53f762016-01-20 11:19:27 -0700165 105: 7(fvec4) CompositeExtract 104 0
166 106: 7(fvec4) FNegate 105
167 107: 7(fvec4) CompositeExtract 104 1
168 108: 7(fvec4) FNegate 107
169 109: 7(fvec4) CompositeExtract 104 2
170 110: 7(fvec4) FNegate 109
171 111: 7(fvec4) CompositeExtract 104 3
172 112: 7(fvec4) FNegate 111
173 113: 61 CompositeConstruct 106 108 110 112
174 114: 7(fvec4) Load 12(v)
175 115: 7(fvec4) MatrixTimesVector 113 114
176 116: 7(fvec4) Load 37(FragColor)
177 117: 7(fvec4) FAdd 116 115
178 Store 37(FragColor) 117
179 118: 61 Load 63(m44)
180 119: 61 Load 63(m44)
181 120: 7(fvec4) CompositeExtract 118 0
182 121: 7(fvec4) CompositeExtract 119 0
183 122: 7(fvec4) FMul 120 121
184 123: 7(fvec4) CompositeExtract 118 1
185 124: 7(fvec4) CompositeExtract 119 1
186 125: 7(fvec4) FMul 123 124
187 126: 7(fvec4) CompositeExtract 118 2
188 127: 7(fvec4) CompositeExtract 119 2
189 128: 7(fvec4) FMul 126 127
190 129: 7(fvec4) CompositeExtract 118 3
191 130: 7(fvec4) CompositeExtract 119 3
192 131: 7(fvec4) FMul 129 130
193 132: 61 CompositeConstruct 122 125 128 131
194 133: 7(fvec4) Load 37(FragColor)
195 134: 7(fvec4) VectorTimesMatrix 133 132
196 Store 37(FragColor) 134
197 135: 85 Load 87(um43)
198 136: 8 Transpose 135
199 Store 10(m34) 136
200 137: 7(fvec4) Load 37(FragColor)
201 138: 8 Load 10(m34)
202 139: 14(fvec3) VectorTimesMatrix 137 138
203 140: 6(float) CompositeExtract 139 0
204 141: 6(float) CompositeExtract 139 1
205 142: 6(float) CompositeExtract 139 2
206 143: 7(fvec4) CompositeConstruct 140 141 142 40
207 144: 7(fvec4) Load 37(FragColor)
208 145: 7(fvec4) FMul 144 143
209 Store 37(FragColor) 145
210 148: 61 Load 147(um4)
211 149: 6(float) ExtInst 1(GLSL.std.450) 33(Determinant) 148
212 150: 7(fvec4) CompositeConstruct 149 149 149 149
213 151: 7(fvec4) Load 37(FragColor)
214 152: 7(fvec4) FMul 151 150
215 Store 37(FragColor) 152
216 159: 154 Load 158(um2)
217 160: 154 ExtInst 1(GLSL.std.450) 34(MatrixInverse) 159
218 Store 156(inv) 160
219 164: 163(ptr) AccessChain 156(inv) 162 55
John Kessenich04bb8a02015-12-12 12:28:14 -0700220 165: 6(float) Load 164
John Kessenich7a53f762016-01-20 11:19:27 -0700221 167: 163(ptr) AccessChain 156(inv) 166 55
222 168: 6(float) Load 167
223 170: 163(ptr) AccessChain 156(inv) 162 169
224 171: 6(float) Load 170
225 172: 163(ptr) AccessChain 156(inv) 166 169
226 173: 6(float) Load 172
227 174: 7(fvec4) CompositeConstruct 165 168 171 173
228 175: 7(fvec4) Load 37(FragColor)
229 176: 7(fvec4) FMul 175 174
230 Store 37(FragColor) 176
231 182: 177 Load 181(um3)
232 183: 177 ExtInst 1(GLSL.std.450) 34(MatrixInverse) 182
233 Store 179(inv3) 183
234 185: 163(ptr) AccessChain 179(inv3) 184 169
235 186: 6(float) Load 185
236 187: 7(fvec4) CompositeConstruct 186 186 186 186
John Kessenich04bb8a02015-12-12 12:28:14 -0700237 188: 7(fvec4) Load 37(FragColor)
John Kessenich7a53f762016-01-20 11:19:27 -0700238 189: 7(fvec4) FMul 188 187
239 Store 37(FragColor) 189
240 191: 61 Load 147(um4)
241 192: 61 ExtInst 1(GLSL.std.450) 34(MatrixInverse) 191
242 Store 190(inv4) 192
243 193: 61 Load 190(inv4)
244 194: 7(fvec4) Load 37(FragColor)
245 195: 7(fvec4) VectorTimesMatrix 194 193
246 Store 37(FragColor) 195
247 196: 7(fvec4) Load 37(FragColor)
248 197: 8 Load 65(un34)
249 198: 8 Load 65(un34)
250 199: 7(fvec4) CompositeExtract 197 0
251 200: 7(fvec4) CompositeExtract 198 0
252 201: 7(fvec4) FMul 199 200
253 202: 7(fvec4) CompositeExtract 197 1
254 203: 7(fvec4) CompositeExtract 198 1
255 204: 7(fvec4) FMul 202 203
256 205: 7(fvec4) CompositeExtract 197 2
257 206: 7(fvec4) CompositeExtract 198 2
258 207: 7(fvec4) FMul 205 206
259 208: 8 CompositeConstruct 201 204 207
260 209: 14(fvec3) VectorTimesMatrix 196 208
261 212: 211(ptr) AccessChain 37(FragColor) 210
262 213: 6(float) Load 212
263 214: 6(float) CompositeExtract 209 0
264 215: 6(float) CompositeExtract 209 1
265 216: 6(float) CompositeExtract 209 2
266 217: 7(fvec4) CompositeConstruct 214 215 216 213
267 Store 37(FragColor) 217
John Kessenich04bb8a02015-12-12 12:28:14 -0700268 Return
269 FunctionEnd