Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 1 | spv.bitCast.frag |
John Kessenich | 2b5ea9f | 2018-01-31 18:35:56 -0700 | [diff] [blame] | 2 | // Module Version 10000 |
Graeme Leese | 182ab46 | 2020-06-22 11:49:38 +0100 | [diff] [blame] | 3 | // Generated by (magic number): 8000a |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 4 | // Id's are bound by 172 |
| 5 | |
| 6 | Capability Shader |
| 7 | 1: ExtInstImport "GLSL.std.450" |
| 8 | MemoryModel Logical GLSL450 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 9 | EntryPoint Fragment 4 "main" 14 26 37 48 89 98 107 116 122 130 139 148 154 |
| 10 | ExecutionMode 4 OriginUpperLeft |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 11 | 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 Kessenich | f6facfa | 2020-07-01 06:30:16 -0600 | [diff] [blame^] | 29 | Decorate 14(f1) Location 8 |
| 30 | Decorate 26(f2) Location 9 |
| 31 | Decorate 37(f3) Location 10 |
| 32 | Decorate 48(f4) Location 11 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 33 | Decorate 89(i1) Flat |
John Kessenich | f6facfa | 2020-07-01 06:30:16 -0600 | [diff] [blame^] | 34 | Decorate 89(i1) Location 0 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 35 | Decorate 98(i2) Flat |
John Kessenich | f6facfa | 2020-07-01 06:30:16 -0600 | [diff] [blame^] | 36 | Decorate 98(i2) Location 1 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 37 | Decorate 107(i3) Flat |
John Kessenich | f6facfa | 2020-07-01 06:30:16 -0600 | [diff] [blame^] | 38 | Decorate 107(i3) Location 2 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 39 | Decorate 116(i4) Flat |
John Kessenich | f6facfa | 2020-07-01 06:30:16 -0600 | [diff] [blame^] | 40 | Decorate 116(i4) Location 3 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 41 | Decorate 122(u1) Flat |
John Kessenich | f6facfa | 2020-07-01 06:30:16 -0600 | [diff] [blame^] | 42 | Decorate 122(u1) Location 4 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 43 | Decorate 130(u2) Flat |
John Kessenich | f6facfa | 2020-07-01 06:30:16 -0600 | [diff] [blame^] | 44 | Decorate 130(u2) Location 5 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 45 | Decorate 139(u3) Flat |
John Kessenich | f6facfa | 2020-07-01 06:30:16 -0600 | [diff] [blame^] | 46 | Decorate 139(u3) Location 6 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 47 | Decorate 148(u4) Flat |
John Kessenich | f6facfa | 2020-07-01 06:30:16 -0600 | [diff] [blame^] | 48 | Decorate 148(u4) Location 7 |
| 49 | Decorate 154(fragColor) Location 0 |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 50 | 2: TypeVoid |
| 51 | 3: TypeFunction 2 |
| 52 | 6: TypeInt 32 1 |
| 53 | 7: TypeVector 6(int) 4 |
| 54 | 8: TypePointer Function 7(ivec4) |
| 55 | 10: 6(int) Constant 0 |
| 56 | 11: 7(ivec4) ConstantComposite 10 10 10 10 |
| 57 | 12: TypeFloat 32 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 58 | 13: TypePointer Input 12(float) |
| 59 | 14(f1): 13(ptr) Variable Input |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 60 | 17: TypeInt 32 0 |
| 61 | 18: 17(int) Constant 0 |
| 62 | 19: TypePointer Function 6(int) |
| 63 | 24: TypeVector 12(float) 2 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 64 | 25: TypePointer Input 24(fvec2) |
| 65 | 26(f2): 25(ptr) Variable Input |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 66 | 28: TypeVector 6(int) 2 |
| 67 | 35: TypeVector 12(float) 3 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 68 | 36: TypePointer Input 35(fvec3) |
| 69 | 37(f3): 36(ptr) Variable Input |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 70 | 39: TypeVector 6(int) 3 |
| 71 | 46: TypeVector 12(float) 4 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 72 | 47: TypePointer Input 46(fvec4) |
| 73 | 48(f4): 47(ptr) Variable Input |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 74 | 53: TypeVector 17(int) 4 |
| 75 | 54: TypePointer Function 53(ivec4) |
| 76 | 56: 53(ivec4) ConstantComposite 18 18 18 18 |
| 77 | 59: TypePointer Function 17(int) |
| 78 | 65: TypeVector 17(int) 2 |
| 79 | 73: TypeVector 17(int) 3 |
| 80 | 84: TypePointer Function 46(fvec4) |
| 81 | 86: 12(float) Constant 0 |
| 82 | 87: 46(fvec4) ConstantComposite 86 86 86 86 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 83 | 88: TypePointer Input 6(int) |
| 84 | 89(i1): 88(ptr) Variable Input |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 85 | 92: TypePointer Function 12(float) |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 86 | 97: TypePointer Input 28(ivec2) |
| 87 | 98(i2): 97(ptr) Variable Input |
| 88 | 106: TypePointer Input 39(ivec3) |
| 89 | 107(i3): 106(ptr) Variable Input |
| 90 | 115: TypePointer Input 7(ivec4) |
| 91 | 116(i4): 115(ptr) Variable Input |
| 92 | 121: TypePointer Input 17(int) |
| 93 | 122(u1): 121(ptr) Variable Input |
| 94 | 129: TypePointer Input 65(ivec2) |
| 95 | 130(u2): 129(ptr) Variable Input |
| 96 | 138: TypePointer Input 73(ivec3) |
| 97 | 139(u3): 138(ptr) Variable Input |
| 98 | 147: TypePointer Input 53(ivec4) |
| 99 | 148(u4): 147(ptr) Variable Input |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 100 | 153: TypePointer Output 46(fvec4) |
| 101 | 154(fragColor): 153(ptr) Variable Output |
John Kessenich | 4bee531 | 2018-02-20 21:29:05 -0700 | [diff] [blame] | 102 | 158: TypeBool |
| 103 | 159: TypeVector 158(bool) 4 |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 104 | 168: 12(float) Constant 1045220557 |
| 105 | 169: 46(fvec4) ConstantComposite 168 168 168 168 |
| 106 | 4(main): 2 Function None 3 |
| 107 | 5: Label |
| 108 | 9(idata): 8(ptr) Variable Function |
| 109 | 55(udata): 54(ptr) Variable Function |
| 110 | 85(fdata): 84(ptr) Variable Function |
John Kessenich | 4bee531 | 2018-02-20 21:29:05 -0700 | [diff] [blame] | 111 | 162: 84(ptr) Variable Function |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 112 | Store 9(idata) 11 |
| 113 | 15: 12(float) Load 14(f1) |
| 114 | 16: 6(int) Bitcast 15 |
| 115 | 20: 19(ptr) AccessChain 9(idata) 18 |
| 116 | 21: 6(int) Load 20 |
| 117 | 22: 6(int) IAdd 21 16 |
| 118 | 23: 19(ptr) AccessChain 9(idata) 18 |
| 119 | Store 23 22 |
| 120 | 27: 24(fvec2) Load 26(f2) |
| 121 | 29: 28(ivec2) Bitcast 27 |
| 122 | 30: 7(ivec4) Load 9(idata) |
| 123 | 31: 28(ivec2) VectorShuffle 30 30 0 1 |
| 124 | 32: 28(ivec2) IAdd 31 29 |
| 125 | 33: 7(ivec4) Load 9(idata) |
| 126 | 34: 7(ivec4) VectorShuffle 33 32 4 5 2 3 |
| 127 | Store 9(idata) 34 |
| 128 | 38: 35(fvec3) Load 37(f3) |
| 129 | 40: 39(ivec3) Bitcast 38 |
| 130 | 41: 7(ivec4) Load 9(idata) |
| 131 | 42: 39(ivec3) VectorShuffle 41 41 0 1 2 |
| 132 | 43: 39(ivec3) IAdd 42 40 |
| 133 | 44: 7(ivec4) Load 9(idata) |
| 134 | 45: 7(ivec4) VectorShuffle 44 43 4 5 6 3 |
| 135 | Store 9(idata) 45 |
| 136 | 49: 46(fvec4) Load 48(f4) |
| 137 | 50: 7(ivec4) Bitcast 49 |
| 138 | 51: 7(ivec4) Load 9(idata) |
| 139 | 52: 7(ivec4) IAdd 51 50 |
| 140 | Store 9(idata) 52 |
| 141 | Store 55(udata) 56 |
| 142 | 57: 12(float) Load 14(f1) |
| 143 | 58: 17(int) Bitcast 57 |
| 144 | 60: 59(ptr) AccessChain 55(udata) 18 |
| 145 | 61: 17(int) Load 60 |
| 146 | 62: 17(int) IAdd 61 58 |
| 147 | 63: 59(ptr) AccessChain 55(udata) 18 |
| 148 | Store 63 62 |
| 149 | 64: 24(fvec2) Load 26(f2) |
| 150 | 66: 65(ivec2) Bitcast 64 |
| 151 | 67: 53(ivec4) Load 55(udata) |
| 152 | 68: 65(ivec2) VectorShuffle 67 67 0 1 |
| 153 | 69: 65(ivec2) IAdd 68 66 |
| 154 | 70: 53(ivec4) Load 55(udata) |
| 155 | 71: 53(ivec4) VectorShuffle 70 69 4 5 2 3 |
| 156 | Store 55(udata) 71 |
| 157 | 72: 35(fvec3) Load 37(f3) |
| 158 | 74: 73(ivec3) Bitcast 72 |
| 159 | 75: 53(ivec4) Load 55(udata) |
| 160 | 76: 73(ivec3) VectorShuffle 75 75 0 1 2 |
| 161 | 77: 73(ivec3) IAdd 76 74 |
| 162 | 78: 53(ivec4) Load 55(udata) |
| 163 | 79: 53(ivec4) VectorShuffle 78 77 4 5 6 3 |
| 164 | Store 55(udata) 79 |
| 165 | 80: 46(fvec4) Load 48(f4) |
| 166 | 81: 53(ivec4) Bitcast 80 |
| 167 | 82: 53(ivec4) Load 55(udata) |
| 168 | 83: 53(ivec4) IAdd 82 81 |
| 169 | Store 55(udata) 83 |
| 170 | Store 85(fdata) 87 |
| 171 | 90: 6(int) Load 89(i1) |
| 172 | 91: 12(float) Bitcast 90 |
| 173 | 93: 92(ptr) AccessChain 85(fdata) 18 |
| 174 | 94: 12(float) Load 93 |
| 175 | 95: 12(float) FAdd 94 91 |
| 176 | 96: 92(ptr) AccessChain 85(fdata) 18 |
| 177 | Store 96 95 |
| 178 | 99: 28(ivec2) Load 98(i2) |
| 179 | 100: 24(fvec2) Bitcast 99 |
| 180 | 101: 46(fvec4) Load 85(fdata) |
| 181 | 102: 24(fvec2) VectorShuffle 101 101 0 1 |
| 182 | 103: 24(fvec2) FAdd 102 100 |
| 183 | 104: 46(fvec4) Load 85(fdata) |
| 184 | 105: 46(fvec4) VectorShuffle 104 103 4 5 2 3 |
| 185 | Store 85(fdata) 105 |
| 186 | 108: 39(ivec3) Load 107(i3) |
| 187 | 109: 35(fvec3) Bitcast 108 |
| 188 | 110: 46(fvec4) Load 85(fdata) |
| 189 | 111: 35(fvec3) VectorShuffle 110 110 0 1 2 |
| 190 | 112: 35(fvec3) FAdd 111 109 |
| 191 | 113: 46(fvec4) Load 85(fdata) |
| 192 | 114: 46(fvec4) VectorShuffle 113 112 4 5 6 3 |
| 193 | Store 85(fdata) 114 |
| 194 | 117: 7(ivec4) Load 116(i4) |
| 195 | 118: 46(fvec4) Bitcast 117 |
| 196 | 119: 46(fvec4) Load 85(fdata) |
| 197 | 120: 46(fvec4) FAdd 119 118 |
| 198 | Store 85(fdata) 120 |
| 199 | 123: 17(int) Load 122(u1) |
| 200 | 124: 12(float) Bitcast 123 |
| 201 | 125: 92(ptr) AccessChain 85(fdata) 18 |
| 202 | 126: 12(float) Load 125 |
| 203 | 127: 12(float) FAdd 126 124 |
| 204 | 128: 92(ptr) AccessChain 85(fdata) 18 |
| 205 | Store 128 127 |
| 206 | 131: 65(ivec2) Load 130(u2) |
| 207 | 132: 24(fvec2) Bitcast 131 |
| 208 | 133: 46(fvec4) Load 85(fdata) |
| 209 | 134: 24(fvec2) VectorShuffle 133 133 0 1 |
| 210 | 135: 24(fvec2) FAdd 134 132 |
| 211 | 136: 46(fvec4) Load 85(fdata) |
| 212 | 137: 46(fvec4) VectorShuffle 136 135 4 5 2 3 |
| 213 | Store 85(fdata) 137 |
| 214 | 140: 73(ivec3) Load 139(u3) |
| 215 | 141: 35(fvec3) Bitcast 140 |
| 216 | 142: 46(fvec4) Load 85(fdata) |
| 217 | 143: 35(fvec3) VectorShuffle 142 142 0 1 2 |
| 218 | 144: 35(fvec3) FAdd 143 141 |
| 219 | 145: 46(fvec4) Load 85(fdata) |
| 220 | 146: 46(fvec4) VectorShuffle 145 144 4 5 6 3 |
| 221 | Store 85(fdata) 146 |
| 222 | 149: 53(ivec4) Load 148(u4) |
| 223 | 150: 46(fvec4) Bitcast 149 |
| 224 | 151: 46(fvec4) Load 85(fdata) |
| 225 | 152: 46(fvec4) FAdd 151 150 |
| 226 | Store 85(fdata) 152 |
John Kessenich | 4bee531 | 2018-02-20 21:29:05 -0700 | [diff] [blame] | 227 | 155: 7(ivec4) Load 9(idata) |
| 228 | 156: 53(ivec4) Bitcast 155 |
| 229 | 157: 53(ivec4) Load 55(udata) |
| 230 | 160: 159(bvec4) IEqual 156 157 |
| 231 | 161: 158(bool) All 160 |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 232 | SelectionMerge 164 None |
John Kessenich | 4bee531 | 2018-02-20 21:29:05 -0700 | [diff] [blame] | 233 | BranchConditional 161 163 166 |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 234 | 163: Label |
| 235 | 165: 46(fvec4) Load 85(fdata) |
John Kessenich | 4bee531 | 2018-02-20 21:29:05 -0700 | [diff] [blame] | 236 | Store 162 165 |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 237 | Branch 164 |
| 238 | 166: Label |
| 239 | 167: 46(fvec4) Load 85(fdata) |
| 240 | 170: 46(fvec4) FAdd 167 169 |
John Kessenich | 4bee531 | 2018-02-20 21:29:05 -0700 | [diff] [blame] | 241 | Store 162 170 |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 242 | Branch 164 |
| 243 | 164: Label |
John Kessenich | 4bee531 | 2018-02-20 21:29:05 -0700 | [diff] [blame] | 244 | 171: 46(fvec4) Load 162 |
Rex Xu | cbc426e | 2015-12-15 16:03:10 +0800 | [diff] [blame] | 245 | Store 154(fragColor) 171 |
| 246 | Return |
| 247 | FunctionEnd |