1spv.accessChain.frag 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 222 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 69 170 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 165 "s" 58 Name 170 "u" 59 Name 171 "param" 60 Name 175 "param" 61 Name 179 "param" 62 Name 183 "param" 63 Name 187 "param" 64 Name 191 "param" 65 Name 195 "param" 66 Name 199 "param" 67 Name 203 "param" 68 Name 207 "param" 69 Name 211 "param" 70 Name 215 "param" 71 Name 219 "param" 72 Decorate 69(OutColor) Location 0 73 Decorate 170(u) Flat 74 Decorate 170(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 113: 71(int) Constant 2 91 140: TypePointer Output 6(float) 92 147: 71(int) Constant 1 93 148: TypeVector 71(int) 2 94 149: 148(ivec2) ConstantComposite 113 147 95 158: TypeVector 71(int) 3 96 159: 158(ivec3) ConstantComposite 113 147 72 97 162: 6(float) Constant 0 98 163: 7(fvec3) ConstantComposite 162 162 162 99 164: TypePointer Function 8(S) 100 169: TypePointer Input 13(int) 101 170(u): 169(ptr) Variable Input 102 4(main): 2 Function None 3 103 5: Label 104 165(s): 164(ptr) Variable Function 105 171(param): 14(ptr) Variable Function 106 175(param): 14(ptr) Variable Function 107 179(param): 14(ptr) Variable Function 108 183(param): 14(ptr) Variable Function 109 187(param): 14(ptr) Variable Function 110 191(param): 14(ptr) Variable Function 111 195(param): 14(ptr) Variable Function 112 199(param): 14(ptr) Variable Function 113 203(param): 14(ptr) Variable Function 114 207(param): 14(ptr) Variable Function 115 211(param): 14(ptr) Variable Function 116 215(param): 14(ptr) Variable Function 117 219(param): 14(ptr) Variable Function 118 Store 69(OutColor) 163 119 166: 8(S) Load 165(s) 120 167: 2 FunctionCall 11(GetColor1(struct-S-vf31;) 166 121 168: 8(S) Load 165(s) 122 172: 13(int) Load 170(u) 123 Store 171(param) 172 124 173: 2 FunctionCall 18(GetColor2(struct-S-vf31;i1;) 168 171(param) 125 174: 8(S) Load 165(s) 126 176: 13(int) Load 170(u) 127 Store 175(param) 176 128 177: 2 FunctionCall 22(GetColor3(struct-S-vf31;i1;) 174 175(param) 129 178: 8(S) Load 165(s) 130 180: 13(int) Load 170(u) 131 Store 179(param) 180 132 181: 2 FunctionCall 26(GetColor4(struct-S-vf31;i1;) 178 179(param) 133 182: 8(S) Load 165(s) 134 184: 13(int) Load 170(u) 135 Store 183(param) 184 136 185: 2 FunctionCall 30(GetColor5(struct-S-vf31;i1;) 182 183(param) 137 186: 8(S) Load 165(s) 138 188: 13(int) Load 170(u) 139 Store 187(param) 188 140 189: 2 FunctionCall 34(GetColor6(struct-S-vf31;i1;) 186 187(param) 141 190: 8(S) Load 165(s) 142 192: 13(int) Load 170(u) 143 Store 191(param) 192 144 193: 2 FunctionCall 38(GetColor7(struct-S-vf31;i1;) 190 191(param) 145 194: 8(S) Load 165(s) 146 196: 13(int) Load 170(u) 147 Store 195(param) 196 148 197: 2 FunctionCall 42(GetColor8(struct-S-vf31;i1;) 194 195(param) 149 198: 8(S) Load 165(s) 150 200: 13(int) Load 170(u) 151 Store 199(param) 200 152 201: 2 FunctionCall 46(GetColor9(struct-S-vf31;i1;) 198 199(param) 153 202: 8(S) Load 165(s) 154 204: 13(int) Load 170(u) 155 Store 203(param) 204 156 205: 2 FunctionCall 50(GetColor10(struct-S-vf31;i1;) 202 203(param) 157 206: 8(S) Load 165(s) 158 208: 13(int) Load 170(u) 159 Store 207(param) 208 160 209: 2 FunctionCall 54(GetColor11(struct-S-vf31;i1;) 206 207(param) 161 210: 8(S) Load 165(s) 162 212: 13(int) Load 170(u) 163 Store 211(param) 212 164 213: 2 FunctionCall 58(GetColor12(struct-S-vf31;i1;) 210 211(param) 165 214: 8(S) Load 165(s) 166 216: 13(int) Load 170(u) 167 Store 215(param) 216 168 217: 2 FunctionCall 62(GetColor13(struct-S-vf31;i1;) 214 215(param) 169 218: 8(S) Load 165(s) 170 220: 13(int) Load 170(u) 171 Store 219(param) 220 172 221: 2 FunctionCall 66(GetColor14(struct-S-vf31;i1;) 218 219(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 111: 7(fvec3) Load 69(OutColor) 258 112: 7(fvec3) VectorShuffle 111 110 3 4 2 259 Store 69(OutColor) 112 260 Return 261 FunctionEnd 26242(GetColor8(struct-S-vf31;i1;): 2 Function None 15 263 40(i): 8(S) FunctionParameter 264 41(comp): 14(ptr) FunctionParameter 265 43: Label 266 114: 6(float) CompositeExtract 40(i) 0 2 267 115: 7(fvec3) Load 69(OutColor) 268 116: 7(fvec3) CompositeConstruct 114 114 114 269 117: 7(fvec3) FAdd 115 116 270 Store 69(OutColor) 117 271 Return 272 FunctionEnd 27346(GetColor9(struct-S-vf31;i1;): 2 Function None 15 274 44(i): 8(S) FunctionParameter 275 45(comp): 14(ptr) FunctionParameter 276 47: Label 277 118: 7(fvec3) CompositeExtract 44(i) 0 278 119: 7(fvec3) Load 69(OutColor) 279 120: 7(fvec3) VectorShuffle 119 119 2 0 1 280 121: 7(fvec3) FAdd 120 118 281 122: 7(fvec3) Load 69(OutColor) 282 123: 7(fvec3) VectorShuffle 122 121 4 5 3 283 Store 69(OutColor) 123 284 Return 285 FunctionEnd 28650(GetColor10(struct-S-vf31;i1;): 2 Function None 15 287 48(i): 8(S) FunctionParameter 288 49(comp): 14(ptr) FunctionParameter 289 51: Label 290 124: 7(fvec3) CompositeExtract 48(i) 0 291 125: 99(fvec2) VectorShuffle 124 124 0 1 292 126: 7(fvec3) Load 69(OutColor) 293 127: 99(fvec2) VectorShuffle 126 126 2 1 294 128: 99(fvec2) FAdd 127 125 295 129: 7(fvec3) Load 69(OutColor) 296 130: 7(fvec3) VectorShuffle 129 128 0 4 3 297 Store 69(OutColor) 130 298 Return 299 FunctionEnd 30054(GetColor11(struct-S-vf31;i1;): 2 Function None 15 301 52(i): 8(S) FunctionParameter 302 53(comp): 14(ptr) FunctionParameter 303 55: Label 304 131: 7(fvec3) CompositeExtract 52(i) 0 305 132: 99(fvec2) VectorShuffle 131 131 0 1 306 133: 7(fvec3) Load 69(OutColor) 307 134: 99(fvec2) VectorShuffle 133 133 0 2 308 135: 99(fvec2) FAdd 134 132 309 136: 7(fvec3) Load 69(OutColor) 310 137: 7(fvec3) VectorShuffle 136 135 3 1 4 311 Store 69(OutColor) 137 312 Return 313 FunctionEnd 31458(GetColor12(struct-S-vf31;i1;): 2 Function None 15 315 56(i): 8(S) FunctionParameter 316 57(comp): 14(ptr) FunctionParameter 317 59: Label 318 138: 13(int) Load 57(comp) 319 139: 6(float) CompositeExtract 56(i) 0 0 320 141: 140(ptr) AccessChain 69(OutColor) 138 321 142: 6(float) Load 141 322 143: 6(float) FAdd 142 139 323 144: 140(ptr) AccessChain 69(OutColor) 138 324 Store 144 143 325 Return 326 FunctionEnd 32762(GetColor13(struct-S-vf31;i1;): 2 Function None 15 328 60(i): 8(S) FunctionParameter 329 61(comp): 14(ptr) FunctionParameter 330 63: Label 331 145: 13(int) Load 61(comp) 332 146: 6(float) CompositeExtract 60(i) 0 0 333 150: 71(int) VectorExtractDynamic 149 145 334 151: 140(ptr) AccessChain 69(OutColor) 150 335 152: 6(float) Load 151 336 153: 6(float) FAdd 152 146 337 154: 71(int) VectorExtractDynamic 149 145 338 155: 140(ptr) AccessChain 69(OutColor) 154 339 Store 155 153 340 Return 341 FunctionEnd 34266(GetColor14(struct-S-vf31;i1;): 2 Function None 15 343 64(i): 8(S) FunctionParameter 344 65(comp): 14(ptr) FunctionParameter 345 67: Label 346 156: 13(int) Load 65(comp) 347 157: 6(float) CompositeExtract 64(i) 0 0 348 160: 71(int) VectorExtractDynamic 159 156 349 161: 140(ptr) AccessChain 69(OutColor) 160 350 Store 161 157 351 Return 352 FunctionEnd 353