Home | History | Annotate | Download | only in baseResults
      1 spv.nonuniform.frag
      2 // Module Version 10000
      3 // Generated by (magic number): 80007
      4 // Id's are bound by 210
      5 
      6                               Capability Shader
      7                               Capability InputAttachment
      8                               Capability SampledBuffer
      9                               Capability ImageBuffer
     10                               Capability CapabilityShaderNonUniformEXT
     11                               Capability CapabilityRuntimeDescriptorArrayEXT
     12                               Capability CapabilityInputAttachmentArrayDynamicIndexingEXT
     13                               Capability CapabilityUniformTexelBufferArrayDynamicIndexingEXT
     14                               Capability CapabilityStorageTexelBufferArrayDynamicIndexingEXT
     15                               Capability CapabilityUniformBufferArrayNonUniformIndexingEXT
     16                               Capability CapabilitySampledImageArrayNonUniformIndexingEXT
     17                               Capability CapabilityStorageBufferArrayNonUniformIndexingEXT
     18                               Capability CapabilityStorageImageArrayNonUniformIndexingEXT
     19                               Capability CapabilityInputAttachmentArrayNonUniformIndexingEXT
     20                               Capability CapabilityUniformTexelBufferArrayNonUniformIndexingEXT
     21                               Capability CapabilityStorageTexelBufferArrayNonUniformIndexingEXT
     22                               Extension  "SPV_EXT_descriptor_indexing"
     23                1:             ExtInstImport  "GLSL.std.450"
     24                               MemoryModel Logical GLSL450
     25                               EntryPoint Fragment 4  "main" 33 90
     26                               ExecutionMode 4 OriginUpperLeft
     27                               Source GLSL 450
     28                               SourceExtension  "GL_EXT_nonuniform_qualifier"
     29                               Name 4  "main"
     30                               Name 11  "foo(i1;i1;"
     31                               Name 9  "nupi"
     32                               Name 10  "f"
     33                               Name 16  "a"
     34                               Name 17  "nu_li"
     35                               Name 18  "param"
     36                               Name 20  "param"
     37                               Name 30  "b"
     38                               Name 33  "nu_inv4"
     39                               Name 39  "nu_gf"
     40                               Name 45  "inputAttachmentDyn"
     41                               Name 46  "dyn_i"
     42                               Name 62  "uniformTexelBufferDyn"
     43                               Name 76  "storageTexelBufferDyn"
     44                               Name 85  "uname"
     45                               MemberName 85(uname) 0  "a"
     46                               Name 88  "uniformBuffer"
     47                               Name 90  "nu_ii"
     48                               Name 97  "bname"
     49                               MemberName 97(bname) 0  "b"
     50                               Name 100  "storageBuffer"
     51                               Name 110  "sampledImage"
     52                               Name 125  "storageImage"
     53                               Name 137  "inputAttachment"
     54                               Name 147  "uniformTexelBuffer"
     55                               Name 158  "storageTexelBuffer"
     56                               Name 168  "v"
     57                               Name 183  "uv"
     58                               Name 193  "m"
     59                               Name 201  "S"
     60                               MemberName 201(S) 0  "a"
     61                               Name 203  "s"
     62                               Decorate 13 DecorationNonUniformEXT
     63                               Decorate 17(nu_li) DecorationNonUniformEXT
     64                               Decorate 19 DecorationNonUniformEXT
     65                               Decorate 23 DecorationNonUniformEXT
     66                               Decorate 26 DecorationNonUniformEXT
     67                               Decorate 27 DecorationNonUniformEXT
     68                               Decorate 33(nu_inv4) Location 0
     69                               Decorate 33(nu_inv4) DecorationNonUniformEXT
     70                               Decorate 38 DecorationNonUniformEXT
     71                               Decorate 39(nu_gf) DecorationNonUniformEXT
     72                               Decorate 40 DecorationNonUniformEXT
     73                               Decorate 41 DecorationNonUniformEXT
     74                               Decorate 45(inputAttachmentDyn) DescriptorSet 0
     75                               Decorate 45(inputAttachmentDyn) Binding 0
     76                               Decorate 45(inputAttachmentDyn) InputAttachmentIndex 0
     77                               Decorate 62(uniformTexelBufferDyn) DescriptorSet 0
     78                               Decorate 62(uniformTexelBufferDyn) Binding 1
     79                               Decorate 76(storageTexelBufferDyn) DescriptorSet 0
     80                               Decorate 76(storageTexelBufferDyn) Binding 2
     81                               MemberDecorate 85(uname) 0 Offset 0
     82                               Decorate 85(uname) Block
     83                               Decorate 88(uniformBuffer) DescriptorSet 0
     84                               Decorate 88(uniformBuffer) Binding 3
     85                               Decorate 90(nu_ii) Flat
     86                               Decorate 90(nu_ii) Location 1
     87                               Decorate 90(nu_ii) DecorationNonUniformEXT
     88                               Decorate 91 DecorationNonUniformEXT
     89                               Decorate 94 DecorationNonUniformEXT
     90                               MemberDecorate 97(bname) 0 Offset 0
     91                               Decorate 97(bname) BufferBlock
     92                               Decorate 100(storageBuffer) DescriptorSet 0
     93                               Decorate 100(storageBuffer) Binding 4
     94                               Decorate 101 DecorationNonUniformEXT
     95                               Decorate 103 DecorationNonUniformEXT
     96                               Decorate 110(sampledImage) DescriptorSet 0
     97                               Decorate 110(sampledImage) Binding 5
     98                               Decorate 111 DecorationNonUniformEXT
     99                               Decorate 114 DecorationNonUniformEXT
    100                               Decorate 125(storageImage) DescriptorSet 0
    101                               Decorate 125(storageImage) Binding 6
    102                               Decorate 126 DecorationNonUniformEXT
    103                               Decorate 129 DecorationNonUniformEXT
    104                               Decorate 137(inputAttachment) DescriptorSet 0
    105                               Decorate 137(inputAttachment) Binding 7
    106                               Decorate 137(inputAttachment) InputAttachmentIndex 1
    107                               Decorate 138 DecorationNonUniformEXT
    108                               Decorate 140 DecorationNonUniformEXT
    109                               Decorate 147(uniformTexelBuffer) DescriptorSet 0
    110                               Decorate 147(uniformTexelBuffer) Binding 8
    111                               Decorate 148 DecorationNonUniformEXT
    112                               Decorate 150 DecorationNonUniformEXT
    113                               Decorate 158(storageTexelBuffer) DescriptorSet 0
    114                               Decorate 158(storageTexelBuffer) Binding 9
    115                               Decorate 159 DecorationNonUniformEXT
    116                               Decorate 161 DecorationNonUniformEXT
    117                               Decorate 168(v) DecorationNonUniformEXT
    118                               Decorate 171 DecorationNonUniformEXT
    119                               Decorate 173 DecorationNonUniformEXT
    120                               Decorate 178 DecorationNonUniformEXT
    121                               Decorate 180 DecorationNonUniformEXT
    122                               Decorate 184 DecorationNonUniformEXT
    123                               Decorate 186 DecorationNonUniformEXT
    124                               Decorate 188 DecorationNonUniformEXT
    125                               Decorate 193(m) DecorationNonUniformEXT
    126                               Decorate 195 DecorationNonUniformEXT
    127                               Decorate 203(s) DecorationNonUniformEXT
    128                               Decorate 205 DecorationNonUniformEXT
    129                               Decorate 207 DecorationNonUniformEXT
    130                2:             TypeVoid
    131                3:             TypeFunction 2
    132                6:             TypeInt 32 1
    133                7:             TypePointer Function 6(int)
    134                8:             TypeFunction 6(int) 7(ptr) 7(ptr)
    135               25:      6(int) Constant 2
    136               28:             TypeFloat 32
    137               29:             TypePointer Function 28(float)
    138               31:             TypeVector 28(float) 4
    139               32:             TypePointer Input 31(fvec4)
    140      33(nu_inv4):     32(ptr) Variable Input
    141               34:             TypeInt 32 0
    142               35:     34(int) Constant 0
    143               36:             TypePointer Input 28(float)
    144               42:             TypeImage 28(float) SubpassData nonsampled format:Unknown
    145               43:             TypeRuntimeArray 42
    146               44:             TypePointer UniformConstant 43
    147 45(inputAttachmentDyn):     44(ptr) Variable UniformConstant
    148               48:             TypePointer UniformConstant 42
    149               51:      6(int) Constant 0
    150               52:             TypeVector 6(int) 2
    151               53:   52(ivec2) ConstantComposite 51 51
    152               58:             TypeImage 28(float) Buffer sampled format:Unknown
    153               59:             TypeSampledImage 58
    154               60:             TypeRuntimeArray 59
    155               61:             TypePointer UniformConstant 60
    156 62(uniformTexelBufferDyn):     61(ptr) Variable UniformConstant
    157               64:             TypePointer UniformConstant 59
    158               67:      6(int) Constant 1
    159               73:             TypeImage 28(float) Buffer nonsampled format:R32f
    160               74:             TypeRuntimeArray 73
    161               75:             TypePointer UniformConstant 74
    162 76(storageTexelBufferDyn):     75(ptr) Variable UniformConstant
    163               78:             TypePointer UniformConstant 73
    164        85(uname):             TypeStruct 28(float)
    165               86:             TypeRuntimeArray 85(uname)
    166               87:             TypePointer Uniform 86
    167 88(uniformBuffer):     87(ptr) Variable Uniform
    168               89:             TypePointer Input 6(int)
    169        90(nu_ii):     89(ptr) Variable Input
    170               92:             TypePointer Uniform 28(float)
    171        97(bname):             TypeStruct 28(float)
    172               98:             TypeRuntimeArray 97(bname)
    173               99:             TypePointer Uniform 98
    174 100(storageBuffer):     99(ptr) Variable Uniform
    175              106:             TypeImage 28(float) 2D sampled format:Unknown
    176              107:             TypeSampledImage 106
    177              108:             TypeRuntimeArray 107
    178              109:             TypePointer UniformConstant 108
    179 110(sampledImage):    109(ptr) Variable UniformConstant
    180              112:             TypePointer UniformConstant 107
    181              115:             TypeVector 28(float) 2
    182              116:   28(float) Constant 1056964608
    183              117:  115(fvec2) ConstantComposite 116 116
    184              122:             TypeImage 28(float) 2D nonsampled format:R32f
    185              123:             TypeRuntimeArray 122
    186              124:             TypePointer UniformConstant 123
    187 125(storageImage):    124(ptr) Variable UniformConstant
    188              127:             TypePointer UniformConstant 122
    189              130:   52(ivec2) ConstantComposite 67 67
    190              135:             TypeRuntimeArray 42
    191              136:             TypePointer UniformConstant 135
    192 137(inputAttachment):    136(ptr) Variable UniformConstant
    193              145:             TypeRuntimeArray 59
    194              146:             TypePointer UniformConstant 145
    195 147(uniformTexelBuffer):    146(ptr) Variable UniformConstant
    196              156:             TypeRuntimeArray 73
    197              157:             TypePointer UniformConstant 156
    198 158(storageTexelBuffer):    157(ptr) Variable UniformConstant
    199              166:             TypeVector 6(int) 4
    200              167:             TypePointer Function 166(ivec4)
    201              169:     34(int) Constant 1
    202              176:     34(int) Constant 2
    203              191:             TypeMatrix 31(fvec4) 4
    204              192:             TypePointer Function 191
    205           201(S):             TypeStruct 6(int)
    206              202:             TypePointer Function 201(S)
    207          4(main):           2 Function None 3
    208                5:             Label
    209            16(a):      7(ptr) Variable Function
    210        17(nu_li):      7(ptr) Variable Function
    211        18(param):      7(ptr) Variable Function
    212        20(param):      7(ptr) Variable Function
    213            30(b):     29(ptr) Variable Function
    214        39(nu_gf):     29(ptr) Variable Function
    215        46(dyn_i):      7(ptr) Variable Function
    216           168(v):    167(ptr) Variable Function
    217          183(uv):    167(ptr) Variable Function
    218           193(m):    192(ptr) Variable Function
    219           203(s):    202(ptr) Variable Function
    220               19:      6(int) Load 17(nu_li)
    221                               Store 18(param) 19
    222               21:      6(int) FunctionCall 11(foo(i1;i1;) 18(param) 20(param)
    223               22:      6(int) Load 20(param)
    224                               Store 17(nu_li) 22
    225                               Store 16(a) 21
    226               23:      6(int) Load 16(a)
    227               24:      6(int) Load 16(a)
    228               26:      6(int) IMul 24 25
    229               27:      6(int) IAdd 23 26
    230                               Store 17(nu_li) 27
    231               37:     36(ptr) AccessChain 33(nu_inv4) 35
    232               38:   28(float) Load 37
    233               40:   28(float) Load 39(nu_gf)
    234               41:   28(float) FMul 38 40
    235                               Store 30(b) 41
    236               47:      6(int) Load 46(dyn_i)
    237               49:     48(ptr) AccessChain 45(inputAttachmentDyn) 47
    238               50:          42 Load 49
    239               54:   31(fvec4) ImageRead 50 53
    240               55:   28(float) CompositeExtract 54 0
    241               56:   28(float) Load 30(b)
    242               57:   28(float) FAdd 56 55
    243                               Store 30(b) 57
    244               63:      6(int) Load 46(dyn_i)
    245               65:     64(ptr) AccessChain 62(uniformTexelBufferDyn) 63
    246               66:          59 Load 65
    247               68:          58 Image 66
    248               69:   31(fvec4) ImageFetch 68 67
    249               70:   28(float) CompositeExtract 69 0
    250               71:   28(float) Load 30(b)
    251               72:   28(float) FAdd 71 70
    252                               Store 30(b) 72
    253               77:      6(int) Load 46(dyn_i)
    254               79:     78(ptr) AccessChain 76(storageTexelBufferDyn) 77
    255               80:          73 Load 79
    256               81:   31(fvec4) ImageRead 80 67
    257               82:   28(float) CompositeExtract 81 0
    258               83:   28(float) Load 30(b)
    259               84:   28(float) FAdd 83 82
    260                               Store 30(b) 84
    261               91:      6(int) Load 90(nu_ii)
    262               93:     92(ptr) AccessChain 88(uniformBuffer) 91 51
    263               94:   28(float) Load 93
    264               95:   28(float) Load 30(b)
    265               96:   28(float) FAdd 95 94
    266                               Store 30(b) 96
    267              101:      6(int) Load 90(nu_ii)
    268              102:     92(ptr) AccessChain 100(storageBuffer) 101 51
    269              103:   28(float) Load 102
    270              104:   28(float) Load 30(b)
    271              105:   28(float) FAdd 104 103
    272                               Store 30(b) 105
    273              111:      6(int) Load 90(nu_ii)
    274              113:    112(ptr) AccessChain 110(sampledImage) 111
    275              114:         107 Load 113
    276              118:   31(fvec4) ImageSampleImplicitLod 114 117
    277              119:   28(float) CompositeExtract 118 0
    278              120:   28(float) Load 30(b)
    279              121:   28(float) FAdd 120 119
    280                               Store 30(b) 121
    281              126:      6(int) Load 90(nu_ii)
    282              128:    127(ptr) AccessChain 125(storageImage) 126
    283              129:         122 Load 128
    284              131:   31(fvec4) ImageRead 129 130
    285              132:   28(float) CompositeExtract 131 0
    286              133:   28(float) Load 30(b)
    287              134:   28(float) FAdd 133 132
    288                               Store 30(b) 134
    289              138:      6(int) Load 90(nu_ii)
    290              139:     48(ptr) AccessChain 137(inputAttachment) 138
    291              140:          42 Load 139
    292              141:   31(fvec4) ImageRead 140 53
    293              142:   28(float) CompositeExtract 141 0
    294              143:   28(float) Load 30(b)
    295              144:   28(float) FAdd 143 142
    296                               Store 30(b) 144
    297              148:      6(int) Load 90(nu_ii)
    298              149:     64(ptr) AccessChain 147(uniformTexelBuffer) 148
    299              150:          59 Load 149
    300              151:          58 Image 150
    301              152:   31(fvec4) ImageFetch 151 67
    302              153:   28(float) CompositeExtract 152 0
    303              154:   28(float) Load 30(b)
    304              155:   28(float) FAdd 154 153
    305                               Store 30(b) 155
    306              159:      6(int) Load 90(nu_ii)
    307              160:     78(ptr) AccessChain 158(storageTexelBuffer) 159
    308              161:          73 Load 160
    309              162:   31(fvec4) ImageRead 161 67
    310              163:   28(float) CompositeExtract 162 0
    311              164:   28(float) Load 30(b)
    312              165:   28(float) FAdd 164 163
    313                               Store 30(b) 165
    314              170:      7(ptr) AccessChain 168(v) 169
    315              171:      6(int) Load 170
    316              172:     92(ptr) AccessChain 88(uniformBuffer) 171 51
    317              173:   28(float) Load 172
    318              174:   28(float) Load 30(b)
    319              175:   28(float) FAdd 174 173
    320                               Store 30(b) 175
    321              177:      7(ptr) AccessChain 168(v) 176
    322              178:      6(int) Load 177
    323              179:     92(ptr) AccessChain 88(uniformBuffer) 178 51
    324              180:   28(float) Load 179
    325              181:   28(float) Load 30(b)
    326              182:   28(float) FAdd 181 180
    327                               Store 30(b) 182
    328              184:      6(int) Load 90(nu_ii)
    329              185:      7(ptr) AccessChain 183(uv) 184
    330              186:      6(int) Load 185
    331              187:     92(ptr) AccessChain 88(uniformBuffer) 186 51
    332              188:   28(float) Load 187
    333              189:   28(float) Load 30(b)
    334              190:   28(float) FAdd 189 188
    335                               Store 30(b) 190
    336              194:     29(ptr) AccessChain 193(m) 25 176
    337              195:   28(float) Load 194
    338              196:      6(int) ConvertFToS 195
    339              197:     92(ptr) AccessChain 88(uniformBuffer) 196 51
    340              198:   28(float) Load 197
    341              199:   28(float) Load 30(b)
    342              200:   28(float) FAdd 199 198
    343                               Store 30(b) 200
    344              204:      7(ptr) AccessChain 203(s) 51
    345              205:      6(int) Load 204
    346              206:     92(ptr) AccessChain 88(uniformBuffer) 205 51
    347              207:   28(float) Load 206
    348              208:   28(float) Load 30(b)
    349              209:   28(float) FAdd 208 207
    350                               Store 30(b) 209
    351                               Return
    352                               FunctionEnd
    353   11(foo(i1;i1;):      6(int) Function None 8
    354          9(nupi):      7(ptr) FunctionParameter
    355            10(f):      7(ptr) FunctionParameter
    356               12:             Label
    357               13:      6(int) Load 9(nupi)
    358                               ReturnValue 13
    359                               FunctionEnd
    360