Home | History | Annotate | Download | only in baseResults
      1 spv.texture.frag
      2 WARNING: 0:10: varying deprecated in version 130; may be removed in future release
      3 WARNING: 0:11: varying deprecated in version 130; may be removed in future release
      4 WARNING: 0:12: varying deprecated in version 130; may be removed in future release
      5 
      6 // Module Version 10000
      7 // Generated by (magic number): 80007
      8 // Id's are bound by 305
      9 
     10                               Capability Shader
     11                               Capability Sampled1D
     12                1:             ExtInstImport  "GLSL.std.450"
     13                               MemoryModel Logical GLSL450
     14                               EntryPoint Fragment 4  "main" 47 291 294 297 303 304
     15                               ExecutionMode 4 OriginUpperLeft
     16                               Source GLSL 140
     17                               Name 4  "main"
     18                               Name 8  "blendscale"
     19                               Name 10  "bias"
     20                               Name 12  "lod"
     21                               Name 14  "proj"
     22                               Name 15  "coords1D"
     23                               Name 18  "coords3D"
     24                               Name 24  "coords4D"
     25                               Name 26  "color"
     26                               Name 32  "texSampler1D"
     27                               Name 47  "coords2D"
     28                               Name 76  "texSampler2D"
     29                               Name 104  "texSampler3D"
     30                               Name 130  "texSamplerCube"
     31                               Name 145  "shadowSampler1D"
     32                               Name 164  "shadowSampler2D"
     33                               Name 221  "iCoords2D"
     34                               Name 226  "iLod"
     35                               Name 236  "gradX"
     36                               Name 239  "gradY"
     37                               Name 291  "gl_FragColor"
     38                               Name 294  "u"
     39                               Name 297  "blend"
     40                               Name 303  "scale"
     41                               Name 304  "t"
     42                               Decorate 32(texSampler1D) DescriptorSet 0
     43                               Decorate 32(texSampler1D) Binding 0
     44                               Decorate 76(texSampler2D) DescriptorSet 0
     45                               Decorate 76(texSampler2D) Binding 0
     46                               Decorate 104(texSampler3D) DescriptorSet 0
     47                               Decorate 104(texSampler3D) Binding 0
     48                               Decorate 130(texSamplerCube) DescriptorSet 0
     49                               Decorate 130(texSamplerCube) Binding 0
     50                               Decorate 145(shadowSampler1D) DescriptorSet 0
     51                               Decorate 145(shadowSampler1D) Binding 0
     52                               Decorate 164(shadowSampler2D) DescriptorSet 0
     53                               Decorate 164(shadowSampler2D) Binding 0
     54                               Decorate 291(gl_FragColor) Location 0
     55                2:             TypeVoid
     56                3:             TypeFunction 2
     57                6:             TypeFloat 32
     58                7:             TypePointer Function 6(float)
     59                9:    6(float) Constant 1071971828
     60               11:    6(float) Constant 1073741824
     61               13:    6(float) Constant 1077936128
     62               16:             TypeVector 6(float) 3
     63               17:             TypePointer Function 16(fvec3)
     64               19:    6(float) Constant 1076753334
     65               20:    6(float) Constant 1079836148
     66               21:   16(fvec3) ConstantComposite 9 19 20
     67               22:             TypeVector 6(float) 4
     68               23:             TypePointer Function 22(fvec4)
     69               25:   22(fvec4) ConstantComposite 9 19 20 11
     70               27:    6(float) Constant 0
     71               28:   22(fvec4) ConstantComposite 27 27 27 27
     72               29:             TypeImage 6(float) 1D sampled format:Unknown
     73               30:             TypeSampledImage 29
     74               31:             TypePointer UniformConstant 30
     75 32(texSampler1D):     31(ptr) Variable UniformConstant
     76               45:             TypeVector 6(float) 2
     77               46:             TypePointer Input 45(fvec2)
     78     47(coords2D):     46(ptr) Variable Input
     79               73:             TypeImage 6(float) 2D sampled format:Unknown
     80               74:             TypeSampledImage 73
     81               75:             TypePointer UniformConstant 74
     82 76(texSampler2D):     75(ptr) Variable UniformConstant
     83              101:             TypeImage 6(float) 3D sampled format:Unknown
     84              102:             TypeSampledImage 101
     85              103:             TypePointer UniformConstant 102
     86 104(texSampler3D):    103(ptr) Variable UniformConstant
     87              127:             TypeImage 6(float) Cube sampled format:Unknown
     88              128:             TypeSampledImage 127
     89              129:             TypePointer UniformConstant 128
     90 130(texSamplerCube):    129(ptr) Variable UniformConstant
     91              142:             TypeImage 6(float) 1D depth sampled format:Unknown
     92              143:             TypeSampledImage 142
     93              144:             TypePointer UniformConstant 143
     94 145(shadowSampler1D):    144(ptr) Variable UniformConstant
     95              161:             TypeImage 6(float) 2D depth sampled format:Unknown
     96              162:             TypeSampledImage 161
     97              163:             TypePointer UniformConstant 162
     98 164(shadowSampler2D):    163(ptr) Variable UniformConstant
     99              218:             TypeInt 32 1
    100              219:             TypeVector 218(int) 2
    101              220:             TypePointer Function 219(ivec2)
    102              222:    218(int) Constant 0
    103              223:    218(int) Constant 5
    104              224:  219(ivec2) ConstantComposite 222 223
    105              225:             TypePointer Function 218(int)
    106              227:    218(int) Constant 1
    107              235:             TypePointer Function 45(fvec2)
    108              264:    218(int) Constant 3
    109              265:    218(int) Constant 4294967289
    110              266:  219(ivec2) ConstantComposite 264 265
    111              290:             TypePointer Output 22(fvec4)
    112 291(gl_FragColor):    290(ptr) Variable Output
    113              293:             TypePointer Input 22(fvec4)
    114           294(u):    293(ptr) Variable Input
    115              296:             TypePointer Input 6(float)
    116       297(blend):    296(ptr) Variable Input
    117       303(scale):     46(ptr) Variable Input
    118           304(t):     46(ptr) Variable Input
    119          4(main):           2 Function None 3
    120                5:             Label
    121    8(blendscale):      7(ptr) Variable Function
    122         10(bias):      7(ptr) Variable Function
    123          12(lod):      7(ptr) Variable Function
    124         14(proj):      7(ptr) Variable Function
    125     15(coords1D):      7(ptr) Variable Function
    126     18(coords3D):     17(ptr) Variable Function
    127     24(coords4D):     23(ptr) Variable Function
    128        26(color):     23(ptr) Variable Function
    129   221(iCoords2D):    220(ptr) Variable Function
    130        226(iLod):    225(ptr) Variable Function
    131       236(gradX):    235(ptr) Variable Function
    132       239(gradY):    235(ptr) Variable Function
    133                               Store 8(blendscale) 9
    134                               Store 10(bias) 11
    135                               Store 12(lod) 13
    136                               Store 14(proj) 11
    137                               Store 15(coords1D) 9
    138                               Store 18(coords3D) 21
    139                               Store 24(coords4D) 25
    140                               Store 26(color) 28
    141               33:          30 Load 32(texSampler1D)
    142               34:    6(float) Load 15(coords1D)
    143               35:   22(fvec4) ImageSampleImplicitLod 33 34
    144               36:   22(fvec4) Load 26(color)
    145               37:   22(fvec4) FAdd 36 35
    146                               Store 26(color) 37
    147               38:          30 Load 32(texSampler1D)
    148               39:    6(float) Load 15(coords1D)
    149               40:    6(float) Load 10(bias)
    150               41:   22(fvec4) ImageSampleImplicitLod 38 39 Bias 40
    151               42:   22(fvec4) Load 26(color)
    152               43:   22(fvec4) FAdd 42 41
    153                               Store 26(color) 43
    154               44:          30 Load 32(texSampler1D)
    155               48:   45(fvec2) Load 47(coords2D)
    156               49:   22(fvec4) ImageSampleProjImplicitLod 44 48
    157               50:   22(fvec4) Load 26(color)
    158               51:   22(fvec4) FAdd 50 49
    159                               Store 26(color) 51
    160               52:          30 Load 32(texSampler1D)
    161               53:   22(fvec4) Load 24(coords4D)
    162               54:    6(float) CompositeExtract 53 3
    163               55:   22(fvec4) CompositeInsert 54 53 1
    164               56:   22(fvec4) ImageSampleProjImplicitLod 52 55
    165               57:   22(fvec4) Load 26(color)
    166               58:   22(fvec4) FAdd 57 56
    167                               Store 26(color) 58
    168               59:          30 Load 32(texSampler1D)
    169               60:   45(fvec2) Load 47(coords2D)
    170               61:    6(float) Load 10(bias)
    171               62:   22(fvec4) ImageSampleProjImplicitLod 59 60 Bias 61
    172               63:   22(fvec4) Load 26(color)
    173               64:   22(fvec4) FAdd 63 62
    174                               Store 26(color) 64
    175               65:          30 Load 32(texSampler1D)
    176               66:   22(fvec4) Load 24(coords4D)
    177               67:    6(float) Load 10(bias)
    178               68:    6(float) CompositeExtract 66 3
    179               69:   22(fvec4) CompositeInsert 68 66 1
    180               70:   22(fvec4) ImageSampleProjImplicitLod 65 69 Bias 67
    181               71:   22(fvec4) Load 26(color)
    182               72:   22(fvec4) FAdd 71 70
    183                               Store 26(color) 72
    184               77:          74 Load 76(texSampler2D)
    185               78:   45(fvec2) Load 47(coords2D)
    186               79:   22(fvec4) ImageSampleImplicitLod 77 78
    187               80:   22(fvec4) Load 26(color)
    188               81:   22(fvec4) FAdd 80 79
    189                               Store 26(color) 81
    190               82:          74 Load 76(texSampler2D)
    191               83:   45(fvec2) Load 47(coords2D)
    192               84:    6(float) Load 10(bias)
    193               85:   22(fvec4) ImageSampleImplicitLod 82 83 Bias 84
    194               86:   22(fvec4) Load 26(color)
    195               87:   22(fvec4) FAdd 86 85
    196                               Store 26(color) 87
    197               88:          74 Load 76(texSampler2D)
    198               89:   16(fvec3) Load 18(coords3D)
    199               90:   22(fvec4) ImageSampleProjImplicitLod 88 89
    200               91:   22(fvec4) Load 26(color)
    201               92:   22(fvec4) FAdd 91 90
    202                               Store 26(color) 92
    203               93:          74 Load 76(texSampler2D)
    204               94:   22(fvec4) Load 24(coords4D)
    205               95:    6(float) Load 10(bias)
    206               96:    6(float) CompositeExtract 94 3
    207               97:   22(fvec4) CompositeInsert 96 94 2
    208               98:   22(fvec4) ImageSampleProjImplicitLod 93 97 Bias 95
    209               99:   22(fvec4) Load 26(color)
    210              100:   22(fvec4) FAdd 99 98
    211                               Store 26(color) 100
    212              105:         102 Load 104(texSampler3D)
    213              106:   16(fvec3) Load 18(coords3D)
    214              107:   22(fvec4) ImageSampleImplicitLod 105 106
    215              108:   22(fvec4) Load 26(color)
    216              109:   22(fvec4) FAdd 108 107
    217                               Store 26(color) 109
    218              110:         102 Load 104(texSampler3D)
    219              111:   16(fvec3) Load 18(coords3D)
    220              112:    6(float) Load 10(bias)
    221              113:   22(fvec4) ImageSampleImplicitLod 110 111 Bias 112
    222              114:   22(fvec4) Load 26(color)
    223              115:   22(fvec4) FAdd 114 113
    224                               Store 26(color) 115
    225              116:         102 Load 104(texSampler3D)
    226              117:   22(fvec4) Load 24(coords4D)
    227              118:   22(fvec4) ImageSampleProjImplicitLod 116 117
    228              119:   22(fvec4) Load 26(color)
    229              120:   22(fvec4) FAdd 119 118
    230                               Store 26(color) 120
    231              121:         102 Load 104(texSampler3D)
    232              122:   22(fvec4) Load 24(coords4D)
    233              123:    6(float) Load 10(bias)
    234              124:   22(fvec4) ImageSampleProjImplicitLod 121 122 Bias 123
    235              125:   22(fvec4) Load 26(color)
    236              126:   22(fvec4) FAdd 125 124
    237                               Store 26(color) 126
    238              131:         128 Load 130(texSamplerCube)
    239              132:   16(fvec3) Load 18(coords3D)
    240              133:   22(fvec4) ImageSampleImplicitLod 131 132
    241              134:   22(fvec4) Load 26(color)
    242              135:   22(fvec4) FAdd 134 133
    243                               Store 26(color) 135
    244              136:         128 Load 130(texSamplerCube)
    245              137:   16(fvec3) Load 18(coords3D)
    246              138:    6(float) Load 10(bias)
    247              139:   22(fvec4) ImageSampleImplicitLod 136 137 Bias 138
    248              140:   22(fvec4) Load 26(color)
    249              141:   22(fvec4) FAdd 140 139
    250                               Store 26(color) 141
    251              146:         143 Load 145(shadowSampler1D)
    252              147:   16(fvec3) Load 18(coords3D)
    253              148:    6(float) CompositeExtract 147 2
    254              149:    6(float) ImageSampleDrefImplicitLod 146 147 148
    255              150:   22(fvec4) Load 26(color)
    256              151:   22(fvec4) CompositeConstruct 149 149 149 149
    257              152:   22(fvec4) FAdd 150 151
    258                               Store 26(color) 152
    259              153:         143 Load 145(shadowSampler1D)
    260              154:   16(fvec3) Load 18(coords3D)
    261              155:    6(float) Load 10(bias)
    262              156:    6(float) CompositeExtract 154 2
    263              157:    6(float) ImageSampleDrefImplicitLod 153 154 156 Bias 155
    264              158:   22(fvec4) Load 26(color)
    265              159:   22(fvec4) CompositeConstruct 157 157 157 157
    266              160:   22(fvec4) FAdd 158 159
    267                               Store 26(color) 160
    268              165:         162 Load 164(shadowSampler2D)
    269              166:   16(fvec3) Load 18(coords3D)
    270              167:    6(float) CompositeExtract 166 2
    271              168:    6(float) ImageSampleDrefImplicitLod 165 166 167
    272              169:   22(fvec4) Load 26(color)
    273              170:   22(fvec4) CompositeConstruct 168 168 168 168
    274              171:   22(fvec4) FAdd 169 170
    275                               Store 26(color) 171
    276              172:         162 Load 164(shadowSampler2D)
    277              173:   16(fvec3) Load 18(coords3D)
    278              174:    6(float) Load 10(bias)
    279              175:    6(float) CompositeExtract 173 2
    280              176:    6(float) ImageSampleDrefImplicitLod 172 173 175 Bias 174
    281              177:   22(fvec4) Load 26(color)
    282              178:   22(fvec4) CompositeConstruct 176 176 176 176
    283              179:   22(fvec4) FAdd 177 178
    284                               Store 26(color) 179
    285              180:         143 Load 145(shadowSampler1D)
    286              181:   22(fvec4) Load 24(coords4D)
    287              182:    6(float) CompositeExtract 181 2
    288              183:    6(float) CompositeExtract 181 3
    289              184:   22(fvec4) CompositeInsert 183 181 1
    290              185:    6(float) ImageSampleProjDrefImplicitLod 180 184 182
    291              186:   22(fvec4) Load 26(color)
    292              187:   22(fvec4) CompositeConstruct 185 185 185 185
    293              188:   22(fvec4) FAdd 186 187
    294                               Store 26(color) 188
    295              189:         143 Load 145(shadowSampler1D)
    296              190:   22(fvec4) Load 24(coords4D)
    297              191:    6(float) Load 10(bias)
    298              192:    6(float) CompositeExtract 190 2
    299              193:    6(float) CompositeExtract 190 3
    300              194:   22(fvec4) CompositeInsert 193 190 1
    301              195:    6(float) ImageSampleProjDrefImplicitLod 189 194 192 Bias 191
    302              196:   22(fvec4) Load 26(color)
    303              197:   22(fvec4) CompositeConstruct 195 195 195 195
    304              198:   22(fvec4) FAdd 196 197
    305                               Store 26(color) 198
    306              199:         162 Load 164(shadowSampler2D)
    307              200:   22(fvec4) Load 24(coords4D)
    308              201:    6(float) CompositeExtract 200 2
    309              202:    6(float) CompositeExtract 200 3
    310              203:   22(fvec4) CompositeInsert 202 200 2
    311              204:    6(float) ImageSampleProjDrefImplicitLod 199 203 201
    312              205:   22(fvec4) Load 26(color)
    313              206:   22(fvec4) CompositeConstruct 204 204 204 204
    314              207:   22(fvec4) FAdd 205 206
    315                               Store 26(color) 207
    316              208:         162 Load 164(shadowSampler2D)
    317              209:   22(fvec4) Load 24(coords4D)
    318              210:    6(float) Load 10(bias)
    319              211:    6(float) CompositeExtract 209 2
    320              212:    6(float) CompositeExtract 209 3
    321              213:   22(fvec4) CompositeInsert 212 209 2
    322              214:    6(float) ImageSampleProjDrefImplicitLod 208 213 211 Bias 210
    323              215:   22(fvec4) Load 26(color)
    324              216:   22(fvec4) CompositeConstruct 214 214 214 214
    325              217:   22(fvec4) FAdd 215 216
    326                               Store 26(color) 217
    327                               Store 221(iCoords2D) 224
    328                               Store 226(iLod) 227
    329              228:          74 Load 76(texSampler2D)
    330              229:  219(ivec2) Load 221(iCoords2D)
    331              230:    218(int) Load 226(iLod)
    332              231:          73 Image 228
    333              232:   22(fvec4) ImageFetch 231 229 Lod 230
    334              233:   22(fvec4) Load 26(color)
    335              234:   22(fvec4) FAdd 233 232
    336                               Store 26(color) 234
    337              237:   45(fvec2) Load 47(coords2D)
    338              238:   45(fvec2) DPdx 237
    339                               Store 236(gradX) 238
    340              240:   45(fvec2) Load 47(coords2D)
    341              241:   45(fvec2) DPdy 240
    342                               Store 239(gradY) 241
    343              242:          74 Load 76(texSampler2D)
    344              243:   45(fvec2) Load 47(coords2D)
    345              244:   45(fvec2) Load 236(gradX)
    346              245:   45(fvec2) Load 239(gradY)
    347              246:   22(fvec4) ImageSampleExplicitLod 242 243 Grad 244 245
    348              247:   22(fvec4) Load 26(color)
    349              248:   22(fvec4) FAdd 247 246
    350                               Store 26(color) 248
    351              249:          74 Load 76(texSampler2D)
    352              250:   45(fvec2) Load 47(coords2D)
    353              251:    6(float) Load 14(proj)
    354              252:    6(float) CompositeExtract 250 0
    355              253:    6(float) CompositeExtract 250 1
    356              254:   16(fvec3) CompositeConstruct 252 253 251
    357              255:   45(fvec2) Load 236(gradX)
    358              256:   45(fvec2) Load 239(gradY)
    359              257:   22(fvec4) ImageSampleProjExplicitLod 249 254 Grad 255 256
    360              258:   22(fvec4) Load 26(color)
    361              259:   22(fvec4) FAdd 258 257
    362                               Store 26(color) 259
    363              260:          74 Load 76(texSampler2D)
    364              261:   45(fvec2) Load 47(coords2D)
    365              262:   45(fvec2) Load 236(gradX)
    366              263:   45(fvec2) Load 239(gradY)
    367              267:   22(fvec4) ImageSampleExplicitLod 260 261 Grad ConstOffset 262 263 266
    368              268:   22(fvec4) Load 26(color)
    369              269:   22(fvec4) FAdd 268 267
    370                               Store 26(color) 269
    371              270:          74 Load 76(texSampler2D)
    372              271:   16(fvec3) Load 18(coords3D)
    373              272:   45(fvec2) Load 236(gradX)
    374              273:   45(fvec2) Load 239(gradY)
    375              274:   22(fvec4) ImageSampleProjExplicitLod 270 271 Grad ConstOffset 272 273 266
    376              275:   22(fvec4) Load 26(color)
    377              276:   22(fvec4) FAdd 275 274
    378                               Store 26(color) 276
    379              277:         162 Load 164(shadowSampler2D)
    380              278:   45(fvec2) Load 47(coords2D)
    381              279:    6(float) Load 12(lod)
    382              280:    6(float) CompositeExtract 278 0
    383              281:    6(float) CompositeExtract 278 1
    384              282:   16(fvec3) CompositeConstruct 280 281 279
    385              283:   45(fvec2) Load 236(gradX)
    386              284:   45(fvec2) Load 239(gradY)
    387              285:    6(float) CompositeExtract 282 2
    388              286:    6(float) ImageSampleDrefExplicitLod 277 282 285 Grad 283 284
    389              287:   22(fvec4) Load 26(color)
    390              288:   22(fvec4) CompositeConstruct 286 286 286 286
    391              289:   22(fvec4) FAdd 287 288
    392                               Store 26(color) 289
    393              292:   22(fvec4) Load 26(color)
    394              295:   22(fvec4) Load 294(u)
    395              298:    6(float) Load 297(blend)
    396              299:    6(float) Load 8(blendscale)
    397              300:    6(float) FMul 298 299
    398              301:   22(fvec4) CompositeConstruct 300 300 300 300
    399              302:   22(fvec4) ExtInst 1(GLSL.std.450) 46(FMix) 292 295 301
    400                               Store 291(gl_FragColor) 302
    401                               Return
    402                               FunctionEnd
    403