1spv.accessChain.frag 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 228 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 69 176 10 ExecutionMode 4 OriginUpperLeft 11 Source GLSL 420 12 Name 4 "main" 13 Name 8 "S" 14 MemberName 8(S) 0 "color" 15 Name 11 "GetColor1(struct-S-vf31;" 16 Name 10 "i" 17 Name 18 "GetColor2(struct-S-vf31;i1;" 18 Name 16 "i" 19 Name 17 "comp" 20 Name 22 "GetColor3(struct-S-vf31;i1;" 21 Name 20 "i" 22 Name 21 "comp" 23 Name 26 "GetColor4(struct-S-vf31;i1;" 24 Name 24 "i" 25 Name 25 "comp" 26 Name 30 "GetColor5(struct-S-vf31;i1;" 27 Name 28 "i" 28 Name 29 "comp" 29 Name 34 "GetColor6(struct-S-vf31;i1;" 30 Name 32 "i" 31 Name 33 "comp" 32 Name 38 "GetColor7(struct-S-vf31;i1;" 33 Name 36 "i" 34 Name 37 "comp" 35 Name 42 "GetColor8(struct-S-vf31;i1;" 36 Name 40 "i" 37 Name 41 "comp" 38 Name 46 "GetColor9(struct-S-vf31;i1;" 39 Name 44 "i" 40 Name 45 "comp" 41 Name 50 "GetColor10(struct-S-vf31;i1;" 42 Name 48 "i" 43 Name 49 "comp" 44 Name 54 "GetColor11(struct-S-vf31;i1;" 45 Name 52 "i" 46 Name 53 "comp" 47 Name 58 "GetColor12(struct-S-vf31;i1;" 48 Name 56 "i" 49 Name 57 "comp" 50 Name 62 "GetColor13(struct-S-vf31;i1;" 51 Name 60 "i" 52 Name 61 "comp" 53 Name 66 "GetColor14(struct-S-vf31;i1;" 54 Name 64 "i" 55 Name 65 "comp" 56 Name 69 "OutColor" 57 Name 171 "s" 58 Name 176 "u" 59 Name 177 "param" 60 Name 181 "param" 61 Name 185 "param" 62 Name 189 "param" 63 Name 193 "param" 64 Name 197 "param" 65 Name 201 "param" 66 Name 205 "param" 67 Name 209 "param" 68 Name 213 "param" 69 Name 217 "param" 70 Name 221 "param" 71 Name 225 "param" 72 Decorate 69(OutColor) Location 0 73 Decorate 176(u) Flat 74 Decorate 176(u) Location 0 75 2: TypeVoid 76 3: TypeFunction 2 77 6: TypeFloat 32 78 7: TypeVector 6(float) 3 79 8(S): TypeStruct 7(fvec3) 80 9: TypeFunction 2 8(S) 81 13: TypeInt 32 1 82 14: TypePointer Function 13(int) 83 15: TypeFunction 2 8(S) 14(ptr) 84 68: TypePointer Output 7(fvec3) 85 69(OutColor): 68(ptr) Variable Output 86 70: 13(int) Constant 0 87 71: TypeInt 32 0 88 72: 71(int) Constant 0 89 99: TypeVector 6(float) 2 90 111: TypePointer Output 6(float) 91 114: 71(int) Constant 1 92 117: 71(int) Constant 2 93 154: TypeVector 71(int) 2 94 155: 154(ivec2) ConstantComposite 117 114 95 164: TypeVector 71(int) 3 96 165: 164(ivec3) ConstantComposite 117 114 72 97 168: 6(float) Constant 0 98 169: 7(fvec3) ConstantComposite 168 168 168 99 170: TypePointer Function 8(S) 100 175: TypePointer Input 13(int) 101 176(u): 175(ptr) Variable Input 102 4(main): 2 Function None 3 103 5: Label 104 171(s): 170(ptr) Variable Function 105 177(param): 14(ptr) Variable Function 106 181(param): 14(ptr) Variable Function 107 185(param): 14(ptr) Variable Function 108 189(param): 14(ptr) Variable Function 109 193(param): 14(ptr) Variable Function 110 197(param): 14(ptr) Variable Function 111 201(param): 14(ptr) Variable Function 112 205(param): 14(ptr) Variable Function 113 209(param): 14(ptr) Variable Function 114 213(param): 14(ptr) Variable Function 115 217(param): 14(ptr) Variable Function 116 221(param): 14(ptr) Variable Function 117 225(param): 14(ptr) Variable Function 118 Store 69(OutColor) 169 119 172: 8(S) Load 171(s) 120 173: 2 FunctionCall 11(GetColor1(struct-S-vf31;) 172 121 174: 8(S) Load 171(s) 122 178: 13(int) Load 176(u) 123 Store 177(param) 178 124 179: 2 FunctionCall 18(GetColor2(struct-S-vf31;i1;) 174 177(param) 125 180: 8(S) Load 171(s) 126 182: 13(int) Load 176(u) 127 Store 181(param) 182 128 183: 2 FunctionCall 22(GetColor3(struct-S-vf31;i1;) 180 181(param) 129 184: 8(S) Load 171(s) 130 186: 13(int) Load 176(u) 131 Store 185(param) 186 132 187: 2 FunctionCall 26(GetColor4(struct-S-vf31;i1;) 184 185(param) 133 188: 8(S) Load 171(s) 134 190: 13(int) Load 176(u) 135 Store 189(param) 190 136 191: 2 FunctionCall 30(GetColor5(struct-S-vf31;i1;) 188 189(param) 137 192: 8(S) Load 171(s) 138 194: 13(int) Load 176(u) 139 Store 193(param) 194 140 195: 2 FunctionCall 34(GetColor6(struct-S-vf31;i1;) 192 193(param) 141 196: 8(S) Load 171(s) 142 198: 13(int) Load 176(u) 143 Store 197(param) 198 144 199: 2 FunctionCall 38(GetColor7(struct-S-vf31;i1;) 196 197(param) 145 200: 8(S) Load 171(s) 146 202: 13(int) Load 176(u) 147 Store 201(param) 202 148 203: 2 FunctionCall 42(GetColor8(struct-S-vf31;i1;) 200 201(param) 149 204: 8(S) Load 171(s) 150 206: 13(int) Load 176(u) 151 Store 205(param) 206 152 207: 2 FunctionCall 46(GetColor9(struct-S-vf31;i1;) 204 205(param) 153 208: 8(S) Load 171(s) 154 210: 13(int) Load 176(u) 155 Store 209(param) 210 156 211: 2 FunctionCall 50(GetColor10(struct-S-vf31;i1;) 208 209(param) 157 212: 8(S) Load 171(s) 158 214: 13(int) Load 176(u) 159 Store 213(param) 214 160 215: 2 FunctionCall 54(GetColor11(struct-S-vf31;i1;) 212 213(param) 161 216: 8(S) Load 171(s) 162 218: 13(int) Load 176(u) 163 Store 217(param) 218 164 219: 2 FunctionCall 58(GetColor12(struct-S-vf31;i1;) 216 217(param) 165 220: 8(S) Load 171(s) 166 222: 13(int) Load 176(u) 167 Store 221(param) 222 168 223: 2 FunctionCall 62(GetColor13(struct-S-vf31;i1;) 220 221(param) 169 224: 8(S) Load 171(s) 170 226: 13(int) Load 176(u) 171 Store 225(param) 226 172 227: 2 FunctionCall 66(GetColor14(struct-S-vf31;i1;) 224 225(param) 173 Return 174 FunctionEnd 17511(GetColor1(struct-S-vf31;): 2 Function None 9 176 10(i): 8(S) FunctionParameter 177 12: Label 178 73: 6(float) CompositeExtract 10(i) 0 0 179 74: 7(fvec3) Load 69(OutColor) 180 75: 7(fvec3) CompositeConstruct 73 73 73 181 76: 7(fvec3) FAdd 74 75 182 Store 69(OutColor) 76 183 Return 184 FunctionEnd 18518(GetColor2(struct-S-vf31;i1;): 2 Function None 15 186 16(i): 8(S) FunctionParameter 187 17(comp): 14(ptr) FunctionParameter 188 19: Label 189 77: 13(int) Load 17(comp) 190 78: 7(fvec3) CompositeExtract 16(i) 0 191 79: 6(float) VectorExtractDynamic 78 77 192 80: 7(fvec3) Load 69(OutColor) 193 81: 7(fvec3) CompositeConstruct 79 79 79 194 82: 7(fvec3) FAdd 80 81 195 Store 69(OutColor) 82 196 Return 197 FunctionEnd 19822(GetColor3(struct-S-vf31;i1;): 2 Function None 15 199 20(i): 8(S) FunctionParameter 200 21(comp): 14(ptr) FunctionParameter 201 23: Label 202 83: 13(int) Load 21(comp) 203 84: 7(fvec3) CompositeExtract 20(i) 0 204 85: 6(float) VectorExtractDynamic 84 83 205 86: 7(fvec3) Load 69(OutColor) 206 87: 7(fvec3) CompositeConstruct 85 85 85 207 88: 7(fvec3) FAdd 86 87 208 Store 69(OutColor) 88 209 Return 210 FunctionEnd 21126(GetColor4(struct-S-vf31;i1;): 2 Function None 15 212 24(i): 8(S) FunctionParameter 213 25(comp): 14(ptr) FunctionParameter 214 27: Label 215 89: 13(int) Load 25(comp) 216 90: 7(fvec3) CompositeExtract 24(i) 0 217 91: 6(float) VectorExtractDynamic 90 89 218 92: 7(fvec3) Load 69(OutColor) 219 93: 7(fvec3) CompositeConstruct 91 91 91 220 94: 7(fvec3) FAdd 92 93 221 Store 69(OutColor) 94 222 Return 223 FunctionEnd 22430(GetColor5(struct-S-vf31;i1;): 2 Function None 15 225 28(i): 8(S) FunctionParameter 226 29(comp): 14(ptr) FunctionParameter 227 31: Label 228 95: 7(fvec3) CompositeExtract 28(i) 0 229 96: 7(fvec3) Load 69(OutColor) 230 97: 7(fvec3) FAdd 96 95 231 Store 69(OutColor) 97 232 Return 233 FunctionEnd 23434(GetColor6(struct-S-vf31;i1;): 2 Function None 15 235 32(i): 8(S) FunctionParameter 236 33(comp): 14(ptr) FunctionParameter 237 35: Label 238 98: 13(int) Load 33(comp) 239 100: 7(fvec3) CompositeExtract 32(i) 0 240 101: 99(fvec2) VectorShuffle 100 100 1 0 241 102: 6(float) VectorExtractDynamic 101 98 242 103: 7(fvec3) Load 69(OutColor) 243 104: 7(fvec3) CompositeConstruct 102 102 102 244 105: 7(fvec3) FAdd 103 104 245 Store 69(OutColor) 105 246 Return 247 FunctionEnd 24838(GetColor7(struct-S-vf31;i1;): 2 Function None 15 249 36(i): 8(S) FunctionParameter 250 37(comp): 14(ptr) FunctionParameter 251 39: Label 252 106: 7(fvec3) CompositeExtract 36(i) 0 253 107: 99(fvec2) VectorShuffle 106 106 0 1 254 108: 7(fvec3) Load 69(OutColor) 255 109: 99(fvec2) VectorShuffle 108 108 0 1 256 110: 99(fvec2) FAdd 109 107 257 112: 111(ptr) AccessChain 69(OutColor) 72 258 113: 6(float) CompositeExtract 110 0 259 Store 112 113 260 115: 111(ptr) AccessChain 69(OutColor) 114 261 116: 6(float) CompositeExtract 110 1 262 Store 115 116 263 Return 264 FunctionEnd 26542(GetColor8(struct-S-vf31;i1;): 2 Function None 15 266 40(i): 8(S) FunctionParameter 267 41(comp): 14(ptr) FunctionParameter 268 43: Label 269 118: 6(float) CompositeExtract 40(i) 0 2 270 119: 7(fvec3) Load 69(OutColor) 271 120: 7(fvec3) CompositeConstruct 118 118 118 272 121: 7(fvec3) FAdd 119 120 273 Store 69(OutColor) 121 274 Return 275 FunctionEnd 27646(GetColor9(struct-S-vf31;i1;): 2 Function None 15 277 44(i): 8(S) FunctionParameter 278 45(comp): 14(ptr) FunctionParameter 279 47: Label 280 122: 7(fvec3) CompositeExtract 44(i) 0 281 123: 7(fvec3) Load 69(OutColor) 282 124: 7(fvec3) VectorShuffle 123 123 2 0 1 283 125: 7(fvec3) FAdd 124 122 284 126: 7(fvec3) Load 69(OutColor) 285 127: 7(fvec3) VectorShuffle 126 125 4 5 3 286 Store 69(OutColor) 127 287 Return 288 FunctionEnd 28950(GetColor10(struct-S-vf31;i1;): 2 Function None 15 290 48(i): 8(S) FunctionParameter 291 49(comp): 14(ptr) FunctionParameter 292 51: Label 293 128: 7(fvec3) CompositeExtract 48(i) 0 294 129: 99(fvec2) VectorShuffle 128 128 0 1 295 130: 7(fvec3) Load 69(OutColor) 296 131: 99(fvec2) VectorShuffle 130 130 2 1 297 132: 99(fvec2) FAdd 131 129 298 133: 111(ptr) AccessChain 69(OutColor) 117 299 134: 6(float) CompositeExtract 132 0 300 Store 133 134 301 135: 111(ptr) AccessChain 69(OutColor) 114 302 136: 6(float) CompositeExtract 132 1 303 Store 135 136 304 Return 305 FunctionEnd 30654(GetColor11(struct-S-vf31;i1;): 2 Function None 15 307 52(i): 8(S) FunctionParameter 308 53(comp): 14(ptr) FunctionParameter 309 55: Label 310 137: 7(fvec3) CompositeExtract 52(i) 0 311 138: 99(fvec2) VectorShuffle 137 137 0 1 312 139: 7(fvec3) Load 69(OutColor) 313 140: 99(fvec2) VectorShuffle 139 139 0 2 314 141: 99(fvec2) FAdd 140 138 315 142: 111(ptr) AccessChain 69(OutColor) 72 316 143: 6(float) CompositeExtract 141 0 317 Store 142 143 318 144: 111(ptr) AccessChain 69(OutColor) 117 319 145: 6(float) CompositeExtract 141 1 320 Store 144 145 321 Return 322 FunctionEnd 32358(GetColor12(struct-S-vf31;i1;): 2 Function None 15 324 56(i): 8(S) FunctionParameter 325 57(comp): 14(ptr) FunctionParameter 326 59: Label 327 146: 13(int) Load 57(comp) 328 147: 6(float) CompositeExtract 56(i) 0 0 329 148: 111(ptr) AccessChain 69(OutColor) 146 330 149: 6(float) Load 148 331 150: 6(float) FAdd 149 147 332 151: 111(ptr) AccessChain 69(OutColor) 146 333 Store 151 150 334 Return 335 FunctionEnd 33662(GetColor13(struct-S-vf31;i1;): 2 Function None 15 337 60(i): 8(S) FunctionParameter 338 61(comp): 14(ptr) FunctionParameter 339 63: Label 340 152: 13(int) Load 61(comp) 341 153: 6(float) CompositeExtract 60(i) 0 0 342 156: 71(int) VectorExtractDynamic 155 152 343 157: 111(ptr) AccessChain 69(OutColor) 156 344 158: 6(float) Load 157 345 159: 6(float) FAdd 158 153 346 160: 71(int) VectorExtractDynamic 155 152 347 161: 111(ptr) AccessChain 69(OutColor) 160 348 Store 161 159 349 Return 350 FunctionEnd 35166(GetColor14(struct-S-vf31;i1;): 2 Function None 15 352 64(i): 8(S) FunctionParameter 353 65(comp): 14(ptr) FunctionParameter 354 67: Label 355 162: 13(int) Load 65(comp) 356 163: 6(float) CompositeExtract 64(i) 0 0 357 166: 71(int) VectorExtractDynamic 165 162 358 167: 111(ptr) AccessChain 69(OutColor) 166 359 Store 167 163 360 Return 361 FunctionEnd 362