Home | History | Annotate | Download | only in baseResults
      1 spv.separate.frag
      2 Validation failed
      3 // Module Version 10000
      4 // Generated by (magic number): 80007
      5 // Id's are bound by 319
      6 
      7                               Capability Shader
      8                               Capability SampledRect
      9                               Capability Sampled1D
     10                               Capability SampledCubeArray
     11                               Capability SampledBuffer
     12                1:             ExtInstImport  "GLSL.std.450"
     13                               MemoryModel Logical GLSL450
     14                               EntryPoint Fragment 4  "main" 11 34
     15                               ExecutionMode 4 OriginUpperLeft
     16                               Source GLSL 400
     17                               Name 4  "main"
     18                               Name 6  "foo("
     19                               Name 11  "color"
     20                               Name 14  "t2d"
     21                               Name 18  "s"
     22                               Name 31  "t3d"
     23                               Name 34  "i"
     24                               Name 41  "sA"
     25                               Name 58  "tex2D"
     26                               Name 64  "texCube"
     27                               Name 71  "texCubeArray"
     28                               Name 77  "sShadow"
     29                               Name 84  "itexCubeArray"
     30                               Name 91  "utexCubeArray"
     31                               Name 98  "tex1DArray"
     32                               Name 105  "itex1DArray"
     33                               Name 112  "utex1D"
     34                               Name 119  "itex1D"
     35                               Name 126  "utex1DArray"
     36                               Name 133  "texBuffer"
     37                               Name 145  "tex2DArray"
     38                               Name 157  "itex2D"
     39                               Name 164  "itex3D"
     40                               Name 171  "itexCube"
     41                               Name 178  "itex2DArray"
     42                               Name 185  "utex2D"
     43                               Name 192  "utex3D"
     44                               Name 199  "utexCube"
     45                               Name 206  "utex2DArray"
     46                               Name 213  "itex2DRect"
     47                               Name 220  "utex2DRect"
     48                               Name 227  "itexBuffer"
     49                               Name 234  "utexBuffer"
     50                               Name 241  "tex2DMS"
     51                               Name 248  "itex2DMS"
     52                               Name 255  "utex2DMS"
     53                               Name 262  "tex2DMSArray"
     54                               Name 269  "itex2DMSArray"
     55                               Name 276  "utex2DMSArray"
     56                               Name 283  "tex1D"
     57                               Name 293  "tex3D"
     58                               Name 304  "tex2DRect"
     59                               Decorate 14(t2d) DescriptorSet 0
     60                               Decorate 14(t2d) Binding 0
     61                               Decorate 18(s) DescriptorSet 0
     62                               Decorate 18(s) Binding 0
     63                               Decorate 31(t3d) DescriptorSet 0
     64                               Decorate 31(t3d) Binding 0
     65                               Decorate 34(i) Flat
     66                               Decorate 41(sA) DescriptorSet 0
     67                               Decorate 41(sA) Binding 0
     68                               Decorate 58(tex2D) DescriptorSet 0
     69                               Decorate 58(tex2D) Binding 0
     70                               Decorate 64(texCube) DescriptorSet 0
     71                               Decorate 64(texCube) Binding 0
     72                               Decorate 71(texCubeArray) DescriptorSet 0
     73                               Decorate 71(texCubeArray) Binding 0
     74                               Decorate 77(sShadow) DescriptorSet 0
     75                               Decorate 77(sShadow) Binding 0
     76                               Decorate 84(itexCubeArray) DescriptorSet 0
     77                               Decorate 84(itexCubeArray) Binding 0
     78                               Decorate 91(utexCubeArray) DescriptorSet 0
     79                               Decorate 91(utexCubeArray) Binding 0
     80                               Decorate 98(tex1DArray) DescriptorSet 0
     81                               Decorate 98(tex1DArray) Binding 0
     82                               Decorate 105(itex1DArray) DescriptorSet 0
     83                               Decorate 105(itex1DArray) Binding 0
     84                               Decorate 112(utex1D) DescriptorSet 0
     85                               Decorate 112(utex1D) Binding 0
     86                               Decorate 119(itex1D) DescriptorSet 0
     87                               Decorate 119(itex1D) Binding 0
     88                               Decorate 126(utex1DArray) DescriptorSet 0
     89                               Decorate 126(utex1DArray) Binding 0
     90                               Decorate 133(texBuffer) DescriptorSet 0
     91                               Decorate 133(texBuffer) Binding 0
     92                               Decorate 145(tex2DArray) DescriptorSet 0
     93                               Decorate 145(tex2DArray) Binding 0
     94                               Decorate 157(itex2D) DescriptorSet 0
     95                               Decorate 157(itex2D) Binding 0
     96                               Decorate 164(itex3D) DescriptorSet 0
     97                               Decorate 164(itex3D) Binding 0
     98                               Decorate 171(itexCube) DescriptorSet 0
     99                               Decorate 171(itexCube) Binding 0
    100                               Decorate 178(itex2DArray) DescriptorSet 0
    101                               Decorate 178(itex2DArray) Binding 0
    102                               Decorate 185(utex2D) DescriptorSet 0
    103                               Decorate 185(utex2D) Binding 0
    104                               Decorate 192(utex3D) DescriptorSet 0
    105                               Decorate 192(utex3D) Binding 0
    106                               Decorate 199(utexCube) DescriptorSet 0
    107                               Decorate 199(utexCube) Binding 0
    108                               Decorate 206(utex2DArray) DescriptorSet 0
    109                               Decorate 206(utex2DArray) Binding 0
    110                               Decorate 213(itex2DRect) DescriptorSet 0
    111                               Decorate 213(itex2DRect) Binding 0
    112                               Decorate 220(utex2DRect) DescriptorSet 0
    113                               Decorate 220(utex2DRect) Binding 0
    114                               Decorate 227(itexBuffer) DescriptorSet 0
    115                               Decorate 227(itexBuffer) Binding 0
    116                               Decorate 234(utexBuffer) DescriptorSet 0
    117                               Decorate 234(utexBuffer) Binding 0
    118                               Decorate 241(tex2DMS) DescriptorSet 0
    119                               Decorate 241(tex2DMS) Binding 0
    120                               Decorate 248(itex2DMS) DescriptorSet 0
    121                               Decorate 248(itex2DMS) Binding 0
    122                               Decorate 255(utex2DMS) DescriptorSet 0
    123                               Decorate 255(utex2DMS) Binding 0
    124                               Decorate 262(tex2DMSArray) DescriptorSet 0
    125                               Decorate 262(tex2DMSArray) Binding 0
    126                               Decorate 269(itex2DMSArray) DescriptorSet 0
    127                               Decorate 269(itex2DMSArray) Binding 0
    128                               Decorate 276(utex2DMSArray) DescriptorSet 0
    129                               Decorate 276(utex2DMSArray) Binding 0
    130                               Decorate 283(tex1D) DescriptorSet 0
    131                               Decorate 283(tex1D) Binding 0
    132                               Decorate 293(tex3D) DescriptorSet 0
    133                               Decorate 293(tex3D) Binding 0
    134                               Decorate 304(tex2DRect) DescriptorSet 0
    135                               Decorate 304(tex2DRect) Binding 0
    136                2:             TypeVoid
    137                3:             TypeFunction 2
    138                8:             TypeFloat 32
    139                9:             TypeVector 8(float) 4
    140               10:             TypePointer Output 9(fvec4)
    141        11(color):     10(ptr) Variable Output
    142               12:             TypeImage 8(float) 2D sampled format:Unknown
    143               13:             TypePointer UniformConstant 12
    144          14(t2d):     13(ptr) Variable UniformConstant
    145               16:             TypeSampler
    146               17:             TypePointer UniformConstant 16
    147            18(s):     17(ptr) Variable UniformConstant
    148               20:             TypeSampledImage 12
    149               22:             TypeVector 8(float) 2
    150               23:    8(float) Constant 1056964608
    151               24:   22(fvec2) ConstantComposite 23 23
    152               26:             TypeImage 8(float) 3D sampled format:Unknown
    153               27:             TypeInt 32 0
    154               28:     27(int) Constant 4
    155               29:             TypeArray 26 28
    156               30:             TypePointer UniformConstant 29
    157          31(t3d):     30(ptr) Variable UniformConstant
    158               32:             TypeInt 32 1
    159               33:             TypePointer Input 32(int)
    160            34(i):     33(ptr) Variable Input
    161               36:             TypePointer UniformConstant 26
    162               39:             TypeArray 16 28
    163               40:             TypePointer UniformConstant 39
    164           41(sA):     40(ptr) Variable UniformConstant
    165               42:     32(int) Constant 2
    166               45:             TypeSampledImage 26
    167               47:             TypeVector 8(float) 3
    168               48:   47(fvec3) ConstantComposite 23 23 23
    169        58(tex2D):     13(ptr) Variable UniformConstant
    170               62:             TypeImage 8(float) Cube sampled format:Unknown
    171               63:             TypePointer UniformConstant 62
    172      64(texCube):     63(ptr) Variable UniformConstant
    173               67:             TypeSampledImage 62
    174               69:             TypeImage 8(float) Cube array sampled format:Unknown
    175               70:             TypePointer UniformConstant 69
    176 71(texCubeArray):     70(ptr) Variable UniformConstant
    177               74:             TypeSampledImage 69
    178      77(sShadow):     17(ptr) Variable UniformConstant
    179               79:             TypeImage 8(float) Cube depth array sampled format:Unknown
    180               80:             TypeSampledImage 79
    181               82:             TypeImage 32(int) Cube array sampled format:Unknown
    182               83:             TypePointer UniformConstant 82
    183 84(itexCubeArray):     83(ptr) Variable UniformConstant
    184               87:             TypeSampledImage 82
    185               89:             TypeImage 27(int) Cube array sampled format:Unknown
    186               90:             TypePointer UniformConstant 89
    187 91(utexCubeArray):     90(ptr) Variable UniformConstant
    188               94:             TypeSampledImage 89
    189               96:             TypeImage 8(float) 1D depth array sampled format:Unknown
    190               97:             TypePointer UniformConstant 96
    191   98(tex1DArray):     97(ptr) Variable UniformConstant
    192              101:             TypeSampledImage 96
    193              103:             TypeImage 32(int) 1D array sampled format:Unknown
    194              104:             TypePointer UniformConstant 103
    195 105(itex1DArray):    104(ptr) Variable UniformConstant
    196              108:             TypeSampledImage 103
    197              110:             TypeImage 27(int) 1D sampled format:Unknown
    198              111:             TypePointer UniformConstant 110
    199      112(utex1D):    111(ptr) Variable UniformConstant
    200              115:             TypeSampledImage 110
    201              117:             TypeImage 32(int) 1D sampled format:Unknown
    202              118:             TypePointer UniformConstant 117
    203      119(itex1D):    118(ptr) Variable UniformConstant
    204              122:             TypeSampledImage 117
    205              124:             TypeImage 27(int) 1D array sampled format:Unknown
    206              125:             TypePointer UniformConstant 124
    207 126(utex1DArray):    125(ptr) Variable UniformConstant
    208              129:             TypeSampledImage 124
    209              131:             TypeImage 8(float) Buffer sampled format:Unknown
    210              132:             TypePointer UniformConstant 131
    211   133(texBuffer):    132(ptr) Variable UniformConstant
    212              136:             TypeSampledImage 131
    213              140:             TypeImage 8(float) Cube depth sampled format:Unknown
    214              141:             TypeSampledImage 140
    215              143:             TypeImage 8(float) 2D array sampled format:Unknown
    216              144:             TypePointer UniformConstant 143
    217  145(tex2DArray):    144(ptr) Variable UniformConstant
    218              148:             TypeSampledImage 143
    219              152:             TypeImage 8(float) 2D depth array sampled format:Unknown
    220              153:             TypeSampledImage 152
    221              155:             TypeImage 32(int) 2D sampled format:Unknown
    222              156:             TypePointer UniformConstant 155
    223      157(itex2D):    156(ptr) Variable UniformConstant
    224              160:             TypeSampledImage 155
    225              162:             TypeImage 32(int) 3D sampled format:Unknown
    226              163:             TypePointer UniformConstant 162
    227      164(itex3D):    163(ptr) Variable UniformConstant
    228              167:             TypeSampledImage 162
    229              169:             TypeImage 32(int) Cube sampled format:Unknown
    230              170:             TypePointer UniformConstant 169
    231    171(itexCube):    170(ptr) Variable UniformConstant
    232              174:             TypeSampledImage 169
    233              176:             TypeImage 32(int) 2D array sampled format:Unknown
    234              177:             TypePointer UniformConstant 176
    235 178(itex2DArray):    177(ptr) Variable UniformConstant
    236              181:             TypeSampledImage 176
    237              183:             TypeImage 27(int) 2D sampled format:Unknown
    238              184:             TypePointer UniformConstant 183
    239      185(utex2D):    184(ptr) Variable UniformConstant
    240              188:             TypeSampledImage 183
    241              190:             TypeImage 27(int) 3D sampled format:Unknown
    242              191:             TypePointer UniformConstant 190
    243      192(utex3D):    191(ptr) Variable UniformConstant
    244              195:             TypeSampledImage 190
    245              197:             TypeImage 27(int) Cube sampled format:Unknown
    246              198:             TypePointer UniformConstant 197
    247    199(utexCube):    198(ptr) Variable UniformConstant
    248              202:             TypeSampledImage 197
    249              204:             TypeImage 27(int) 2D array sampled format:Unknown
    250              205:             TypePointer UniformConstant 204
    251 206(utex2DArray):    205(ptr) Variable UniformConstant
    252              209:             TypeSampledImage 204
    253              211:             TypeImage 32(int) Rect sampled format:Unknown
    254              212:             TypePointer UniformConstant 211
    255  213(itex2DRect):    212(ptr) Variable UniformConstant
    256              216:             TypeSampledImage 211
    257              218:             TypeImage 27(int) Rect sampled format:Unknown
    258              219:             TypePointer UniformConstant 218
    259  220(utex2DRect):    219(ptr) Variable UniformConstant
    260              223:             TypeSampledImage 218
    261              225:             TypeImage 32(int) Buffer sampled format:Unknown
    262              226:             TypePointer UniformConstant 225
    263  227(itexBuffer):    226(ptr) Variable UniformConstant
    264              230:             TypeSampledImage 225
    265              232:             TypeImage 27(int) Buffer sampled format:Unknown
    266              233:             TypePointer UniformConstant 232
    267  234(utexBuffer):    233(ptr) Variable UniformConstant
    268              237:             TypeSampledImage 232
    269              239:             TypeImage 8(float) 2D multi-sampled sampled format:Unknown
    270              240:             TypePointer UniformConstant 239
    271     241(tex2DMS):    240(ptr) Variable UniformConstant
    272              244:             TypeSampledImage 239
    273              246:             TypeImage 32(int) 2D multi-sampled sampled format:Unknown
    274              247:             TypePointer UniformConstant 246
    275    248(itex2DMS):    247(ptr) Variable UniformConstant
    276              251:             TypeSampledImage 246
    277              253:             TypeImage 27(int) 2D multi-sampled sampled format:Unknown
    278              254:             TypePointer UniformConstant 253
    279    255(utex2DMS):    254(ptr) Variable UniformConstant
    280              258:             TypeSampledImage 253
    281              260:             TypeImage 8(float) 2D array multi-sampled sampled format:Unknown
    282              261:             TypePointer UniformConstant 260
    283 262(tex2DMSArray):    261(ptr) Variable UniformConstant
    284              265:             TypeSampledImage 260
    285              267:             TypeImage 32(int) 2D array multi-sampled sampled format:Unknown
    286              268:             TypePointer UniformConstant 267
    287 269(itex2DMSArray):    268(ptr) Variable UniformConstant
    288              272:             TypeSampledImage 267
    289              274:             TypeImage 27(int) 2D array multi-sampled sampled format:Unknown
    290              275:             TypePointer UniformConstant 274
    291 276(utex2DMSArray):    275(ptr) Variable UniformConstant
    292              279:             TypeSampledImage 274
    293              281:             TypeImage 8(float) 1D sampled format:Unknown
    294              282:             TypePointer UniformConstant 281
    295       283(tex1D):    282(ptr) Variable UniformConstant
    296              286:             TypeSampledImage 281
    297              290:             TypeImage 8(float) 1D depth sampled format:Unknown
    298              291:             TypeSampledImage 290
    299       293(tex3D):     36(ptr) Variable UniformConstant
    300              299:             TypeImage 8(float) 2D depth sampled format:Unknown
    301              300:             TypeSampledImage 299
    302              302:             TypeImage 8(float) Rect sampled format:Unknown
    303              303:             TypePointer UniformConstant 302
    304   304(tex2DRect):    303(ptr) Variable UniformConstant
    305              307:             TypeSampledImage 302
    306              311:             TypeImage 8(float) Rect depth sampled format:Unknown
    307              312:             TypeSampledImage 311
    308              316:             TypeImage 8(float) 1D array sampled format:Unknown
    309              317:             TypeSampledImage 316
    310          4(main):           2 Function None 3
    311                5:             Label
    312               15:          12 Load 14(t2d)
    313               19:          16 Load 18(s)
    314               21:          20 SampledImage 15 19
    315               25:    9(fvec4) ImageSampleImplicitLod 21 24
    316                               Store 11(color) 25
    317               35:     32(int) Load 34(i)
    318               37:     36(ptr) AccessChain 31(t3d) 35
    319               38:          26 Load 37
    320               43:     17(ptr) AccessChain 41(sA) 42
    321               44:          16 Load 43
    322               46:          45 SampledImage 38 44
    323               49:    9(fvec4) ImageSampleImplicitLod 46 48
    324               50:    9(fvec4) Load 11(color)
    325               51:    9(fvec4) FAdd 50 49
    326                               Store 11(color) 51
    327               52:          12 Load 14(t2d)
    328               53:          16 Load 18(s)
    329               54:          20 SampledImage 52 53
    330               55:    9(fvec4) ImageSampleImplicitLod 54 24
    331               56:    9(fvec4) Load 11(color)
    332               57:    9(fvec4) FAdd 56 55
    333                               Store 11(color) 57
    334                               Return
    335                               FunctionEnd
    336          6(foo():           2 Function None 3
    337                7:             Label
    338               59:          12 Load 58(tex2D)
    339               60:          16 Load 18(s)
    340               61:          20 SampledImage 59 60
    341               65:          62 Load 64(texCube)
    342               66:          16 Load 18(s)
    343               68:          67 SampledImage 65 66
    344               72:          69 Load 71(texCubeArray)
    345               73:          16 Load 18(s)
    346               75:          74 SampledImage 72 73
    347               76:          69 Load 71(texCubeArray)
    348               78:          16 Load 77(sShadow)
    349               81:          80 SampledImage 76 78
    350               85:          82 Load 84(itexCubeArray)
    351               86:          16 Load 18(s)
    352               88:          87 SampledImage 85 86
    353               92:          89 Load 91(utexCubeArray)
    354               93:          16 Load 18(s)
    355               95:          94 SampledImage 92 93
    356               99:          96 Load 98(tex1DArray)
    357              100:          16 Load 77(sShadow)
    358              102:         101 SampledImage 99 100
    359              106:         103 Load 105(itex1DArray)
    360              107:          16 Load 18(s)
    361              109:         108 SampledImage 106 107
    362              113:         110 Load 112(utex1D)
    363              114:          16 Load 18(s)
    364              116:         115 SampledImage 113 114
    365              120:         117 Load 119(itex1D)
    366              121:          16 Load 18(s)
    367              123:         122 SampledImage 120 121
    368              127:         124 Load 126(utex1DArray)
    369              128:          16 Load 18(s)
    370              130:         129 SampledImage 127 128
    371              134:         131 Load 133(texBuffer)
    372              135:          16 Load 18(s)
    373              137:         136 SampledImage 134 135
    374              138:          62 Load 64(texCube)
    375              139:          16 Load 77(sShadow)
    376              142:         141 SampledImage 138 139
    377              146:         143 Load 145(tex2DArray)
    378              147:          16 Load 18(s)
    379              149:         148 SampledImage 146 147
    380              150:         143 Load 145(tex2DArray)
    381              151:          16 Load 77(sShadow)
    382              154:         153 SampledImage 150 151
    383              158:         155 Load 157(itex2D)
    384              159:          16 Load 18(s)
    385              161:         160 SampledImage 158 159
    386              165:         162 Load 164(itex3D)
    387              166:          16 Load 18(s)
    388              168:         167 SampledImage 165 166
    389              172:         169 Load 171(itexCube)
    390              173:          16 Load 18(s)
    391              175:         174 SampledImage 172 173
    392              179:         176 Load 178(itex2DArray)
    393              180:          16 Load 18(s)
    394              182:         181 SampledImage 179 180
    395              186:         183 Load 185(utex2D)
    396              187:          16 Load 18(s)
    397              189:         188 SampledImage 186 187
    398              193:         190 Load 192(utex3D)
    399              194:          16 Load 18(s)
    400              196:         195 SampledImage 193 194
    401              200:         197 Load 199(utexCube)
    402              201:          16 Load 18(s)
    403              203:         202 SampledImage 200 201
    404              207:         204 Load 206(utex2DArray)
    405              208:          16 Load 18(s)
    406              210:         209 SampledImage 207 208
    407              214:         211 Load 213(itex2DRect)
    408              215:          16 Load 18(s)
    409              217:         216 SampledImage 214 215
    410              221:         218 Load 220(utex2DRect)
    411              222:          16 Load 18(s)
    412              224:         223 SampledImage 221 222
    413              228:         225 Load 227(itexBuffer)
    414              229:          16 Load 18(s)
    415              231:         230 SampledImage 228 229
    416              235:         232 Load 234(utexBuffer)
    417              236:          16 Load 18(s)
    418              238:         237 SampledImage 235 236
    419              242:         239 Load 241(tex2DMS)
    420              243:          16 Load 18(s)
    421              245:         244 SampledImage 242 243
    422              249:         246 Load 248(itex2DMS)
    423              250:          16 Load 18(s)
    424              252:         251 SampledImage 249 250
    425              256:         253 Load 255(utex2DMS)
    426              257:          16 Load 18(s)
    427              259:         258 SampledImage 256 257
    428              263:         260 Load 262(tex2DMSArray)
    429              264:          16 Load 18(s)
    430              266:         265 SampledImage 263 264
    431              270:         267 Load 269(itex2DMSArray)
    432              271:          16 Load 18(s)
    433              273:         272 SampledImage 270 271
    434              277:         274 Load 276(utex2DMSArray)
    435              278:          16 Load 18(s)
    436              280:         279 SampledImage 277 278
    437              284:         281 Load 283(tex1D)
    438              285:          16 Load 18(s)
    439              287:         286 SampledImage 284 285
    440              288:         281 Load 283(tex1D)
    441              289:          16 Load 77(sShadow)
    442              292:         291 SampledImage 288 289
    443              294:          26 Load 293(tex3D)
    444              295:          16 Load 18(s)
    445              296:          45 SampledImage 294 295
    446              297:          12 Load 58(tex2D)
    447              298:          16 Load 77(sShadow)
    448              301:         300 SampledImage 297 298
    449              305:         302 Load 304(tex2DRect)
    450              306:          16 Load 18(s)
    451              308:         307 SampledImage 305 306
    452              309:         302 Load 304(tex2DRect)
    453              310:          16 Load 77(sShadow)
    454              313:         312 SampledImage 309 310
    455              314:          96 Load 98(tex1DArray)
    456              315:          16 Load 18(s)
    457              318:         317 SampledImage 314 315
    458                               Return
    459                               FunctionEnd
    460