blob: 7041004bbb4585d87224b8f95241b83627abfece [file] [log] [blame]
Rex Xucbc426e2015-12-15 16:03:10 +08001spv.bitCast.frag
John Kessenich2b5ea9f2018-01-31 18:35:56 -07002// Module Version 10000
Graeme Leese182ab462020-06-22 11:49:38 +01003// Generated by (magic number): 8000a
Rex Xucbc426e2015-12-15 16:03:10 +08004// Id's are bound by 172
5
6 Capability Shader
7 1: ExtInstImport "GLSL.std.450"
8 MemoryModel Logical GLSL450
John Kessenich6c292d32016-02-15 20:58:50 -07009 EntryPoint Fragment 4 "main" 14 26 37 48 89 98 107 116 122 130 139 148 154
10 ExecutionMode 4 OriginUpperLeft
Rex Xucbc426e2015-12-15 16:03:10 +080011 Source GLSL 450
12 Name 4 "main"
13 Name 9 "idata"
14 Name 14 "f1"
15 Name 26 "f2"
16 Name 37 "f3"
17 Name 48 "f4"
18 Name 55 "udata"
19 Name 85 "fdata"
20 Name 89 "i1"
21 Name 98 "i2"
22 Name 107 "i3"
23 Name 116 "i4"
24 Name 122 "u1"
25 Name 130 "u2"
26 Name 139 "u3"
27 Name 148 "u4"
28 Name 154 "fragColor"
John Kessenich6c292d32016-02-15 20:58:50 -070029 Decorate 89(i1) Flat
30 Decorate 98(i2) Flat
31 Decorate 107(i3) Flat
32 Decorate 116(i4) Flat
33 Decorate 122(u1) Flat
34 Decorate 130(u2) Flat
35 Decorate 139(u3) Flat
36 Decorate 148(u4) Flat
Rex Xucbc426e2015-12-15 16:03:10 +080037 2: TypeVoid
38 3: TypeFunction 2
39 6: TypeInt 32 1
40 7: TypeVector 6(int) 4
41 8: TypePointer Function 7(ivec4)
42 10: 6(int) Constant 0
43 11: 7(ivec4) ConstantComposite 10 10 10 10
44 12: TypeFloat 32
John Kessenich6c292d32016-02-15 20:58:50 -070045 13: TypePointer Input 12(float)
46 14(f1): 13(ptr) Variable Input
Rex Xucbc426e2015-12-15 16:03:10 +080047 17: TypeInt 32 0
48 18: 17(int) Constant 0
49 19: TypePointer Function 6(int)
50 24: TypeVector 12(float) 2
John Kessenich6c292d32016-02-15 20:58:50 -070051 25: TypePointer Input 24(fvec2)
52 26(f2): 25(ptr) Variable Input
Rex Xucbc426e2015-12-15 16:03:10 +080053 28: TypeVector 6(int) 2
54 35: TypeVector 12(float) 3
John Kessenich6c292d32016-02-15 20:58:50 -070055 36: TypePointer Input 35(fvec3)
56 37(f3): 36(ptr) Variable Input
Rex Xucbc426e2015-12-15 16:03:10 +080057 39: TypeVector 6(int) 3
58 46: TypeVector 12(float) 4
John Kessenich6c292d32016-02-15 20:58:50 -070059 47: TypePointer Input 46(fvec4)
60 48(f4): 47(ptr) Variable Input
Rex Xucbc426e2015-12-15 16:03:10 +080061 53: TypeVector 17(int) 4
62 54: TypePointer Function 53(ivec4)
63 56: 53(ivec4) ConstantComposite 18 18 18 18
64 59: TypePointer Function 17(int)
65 65: TypeVector 17(int) 2
66 73: TypeVector 17(int) 3
67 84: TypePointer Function 46(fvec4)
68 86: 12(float) Constant 0
69 87: 46(fvec4) ConstantComposite 86 86 86 86
John Kessenich6c292d32016-02-15 20:58:50 -070070 88: TypePointer Input 6(int)
71 89(i1): 88(ptr) Variable Input
Rex Xucbc426e2015-12-15 16:03:10 +080072 92: TypePointer Function 12(float)
John Kessenich6c292d32016-02-15 20:58:50 -070073 97: TypePointer Input 28(ivec2)
74 98(i2): 97(ptr) Variable Input
75 106: TypePointer Input 39(ivec3)
76 107(i3): 106(ptr) Variable Input
77 115: TypePointer Input 7(ivec4)
78 116(i4): 115(ptr) Variable Input
79 121: TypePointer Input 17(int)
80 122(u1): 121(ptr) Variable Input
81 129: TypePointer Input 65(ivec2)
82 130(u2): 129(ptr) Variable Input
83 138: TypePointer Input 73(ivec3)
84 139(u3): 138(ptr) Variable Input
85 147: TypePointer Input 53(ivec4)
86 148(u4): 147(ptr) Variable Input
Rex Xucbc426e2015-12-15 16:03:10 +080087 153: TypePointer Output 46(fvec4)
88 154(fragColor): 153(ptr) Variable Output
John Kessenich4bee5312018-02-20 21:29:05 -070089 158: TypeBool
90 159: TypeVector 158(bool) 4
Rex Xucbc426e2015-12-15 16:03:10 +080091 168: 12(float) Constant 1045220557
92 169: 46(fvec4) ConstantComposite 168 168 168 168
93 4(main): 2 Function None 3
94 5: Label
95 9(idata): 8(ptr) Variable Function
96 55(udata): 54(ptr) Variable Function
97 85(fdata): 84(ptr) Variable Function
John Kessenich4bee5312018-02-20 21:29:05 -070098 162: 84(ptr) Variable Function
Rex Xucbc426e2015-12-15 16:03:10 +080099 Store 9(idata) 11
100 15: 12(float) Load 14(f1)
101 16: 6(int) Bitcast 15
102 20: 19(ptr) AccessChain 9(idata) 18
103 21: 6(int) Load 20
104 22: 6(int) IAdd 21 16
105 23: 19(ptr) AccessChain 9(idata) 18
106 Store 23 22
107 27: 24(fvec2) Load 26(f2)
108 29: 28(ivec2) Bitcast 27
109 30: 7(ivec4) Load 9(idata)
110 31: 28(ivec2) VectorShuffle 30 30 0 1
111 32: 28(ivec2) IAdd 31 29
112 33: 7(ivec4) Load 9(idata)
113 34: 7(ivec4) VectorShuffle 33 32 4 5 2 3
114 Store 9(idata) 34
115 38: 35(fvec3) Load 37(f3)
116 40: 39(ivec3) Bitcast 38
117 41: 7(ivec4) Load 9(idata)
118 42: 39(ivec3) VectorShuffle 41 41 0 1 2
119 43: 39(ivec3) IAdd 42 40
120 44: 7(ivec4) Load 9(idata)
121 45: 7(ivec4) VectorShuffle 44 43 4 5 6 3
122 Store 9(idata) 45
123 49: 46(fvec4) Load 48(f4)
124 50: 7(ivec4) Bitcast 49
125 51: 7(ivec4) Load 9(idata)
126 52: 7(ivec4) IAdd 51 50
127 Store 9(idata) 52
128 Store 55(udata) 56
129 57: 12(float) Load 14(f1)
130 58: 17(int) Bitcast 57
131 60: 59(ptr) AccessChain 55(udata) 18
132 61: 17(int) Load 60
133 62: 17(int) IAdd 61 58
134 63: 59(ptr) AccessChain 55(udata) 18
135 Store 63 62
136 64: 24(fvec2) Load 26(f2)
137 66: 65(ivec2) Bitcast 64
138 67: 53(ivec4) Load 55(udata)
139 68: 65(ivec2) VectorShuffle 67 67 0 1
140 69: 65(ivec2) IAdd 68 66
141 70: 53(ivec4) Load 55(udata)
142 71: 53(ivec4) VectorShuffle 70 69 4 5 2 3
143 Store 55(udata) 71
144 72: 35(fvec3) Load 37(f3)
145 74: 73(ivec3) Bitcast 72
146 75: 53(ivec4) Load 55(udata)
147 76: 73(ivec3) VectorShuffle 75 75 0 1 2
148 77: 73(ivec3) IAdd 76 74
149 78: 53(ivec4) Load 55(udata)
150 79: 53(ivec4) VectorShuffle 78 77 4 5 6 3
151 Store 55(udata) 79
152 80: 46(fvec4) Load 48(f4)
153 81: 53(ivec4) Bitcast 80
154 82: 53(ivec4) Load 55(udata)
155 83: 53(ivec4) IAdd 82 81
156 Store 55(udata) 83
157 Store 85(fdata) 87
158 90: 6(int) Load 89(i1)
159 91: 12(float) Bitcast 90
160 93: 92(ptr) AccessChain 85(fdata) 18
161 94: 12(float) Load 93
162 95: 12(float) FAdd 94 91
163 96: 92(ptr) AccessChain 85(fdata) 18
164 Store 96 95
165 99: 28(ivec2) Load 98(i2)
166 100: 24(fvec2) Bitcast 99
167 101: 46(fvec4) Load 85(fdata)
168 102: 24(fvec2) VectorShuffle 101 101 0 1
169 103: 24(fvec2) FAdd 102 100
170 104: 46(fvec4) Load 85(fdata)
171 105: 46(fvec4) VectorShuffle 104 103 4 5 2 3
172 Store 85(fdata) 105
173 108: 39(ivec3) Load 107(i3)
174 109: 35(fvec3) Bitcast 108
175 110: 46(fvec4) Load 85(fdata)
176 111: 35(fvec3) VectorShuffle 110 110 0 1 2
177 112: 35(fvec3) FAdd 111 109
178 113: 46(fvec4) Load 85(fdata)
179 114: 46(fvec4) VectorShuffle 113 112 4 5 6 3
180 Store 85(fdata) 114
181 117: 7(ivec4) Load 116(i4)
182 118: 46(fvec4) Bitcast 117
183 119: 46(fvec4) Load 85(fdata)
184 120: 46(fvec4) FAdd 119 118
185 Store 85(fdata) 120
186 123: 17(int) Load 122(u1)
187 124: 12(float) Bitcast 123
188 125: 92(ptr) AccessChain 85(fdata) 18
189 126: 12(float) Load 125
190 127: 12(float) FAdd 126 124
191 128: 92(ptr) AccessChain 85(fdata) 18
192 Store 128 127
193 131: 65(ivec2) Load 130(u2)
194 132: 24(fvec2) Bitcast 131
195 133: 46(fvec4) Load 85(fdata)
196 134: 24(fvec2) VectorShuffle 133 133 0 1
197 135: 24(fvec2) FAdd 134 132
198 136: 46(fvec4) Load 85(fdata)
199 137: 46(fvec4) VectorShuffle 136 135 4 5 2 3
200 Store 85(fdata) 137
201 140: 73(ivec3) Load 139(u3)
202 141: 35(fvec3) Bitcast 140
203 142: 46(fvec4) Load 85(fdata)
204 143: 35(fvec3) VectorShuffle 142 142 0 1 2
205 144: 35(fvec3) FAdd 143 141
206 145: 46(fvec4) Load 85(fdata)
207 146: 46(fvec4) VectorShuffle 145 144 4 5 6 3
208 Store 85(fdata) 146
209 149: 53(ivec4) Load 148(u4)
210 150: 46(fvec4) Bitcast 149
211 151: 46(fvec4) Load 85(fdata)
212 152: 46(fvec4) FAdd 151 150
213 Store 85(fdata) 152
John Kessenich4bee5312018-02-20 21:29:05 -0700214 155: 7(ivec4) Load 9(idata)
215 156: 53(ivec4) Bitcast 155
216 157: 53(ivec4) Load 55(udata)
217 160: 159(bvec4) IEqual 156 157
218 161: 158(bool) All 160
Rex Xucbc426e2015-12-15 16:03:10 +0800219 SelectionMerge 164 None
John Kessenich4bee5312018-02-20 21:29:05 -0700220 BranchConditional 161 163 166
Rex Xucbc426e2015-12-15 16:03:10 +0800221 163: Label
222 165: 46(fvec4) Load 85(fdata)
John Kessenich4bee5312018-02-20 21:29:05 -0700223 Store 162 165
Rex Xucbc426e2015-12-15 16:03:10 +0800224 Branch 164
225 166: Label
226 167: 46(fvec4) Load 85(fdata)
227 170: 46(fvec4) FAdd 167 169
John Kessenich4bee5312018-02-20 21:29:05 -0700228 Store 162 170
Rex Xucbc426e2015-12-15 16:03:10 +0800229 Branch 164
230 164: Label
John Kessenich4bee5312018-02-20 21:29:05 -0700231 171: 46(fvec4) Load 162
Rex Xucbc426e2015-12-15 16:03:10 +0800232 Store 154(fragColor) 171
233 Return
234 FunctionEnd