Home | History | Annotate | Download | only in baseResults
      1 hlsl.flattenOpaqueInit.vert
      2 WARNING: AST will form illegal SPIR-V; need to transform to legalize
      3 Shader version: 500
      4 0:? Sequence
      5 0:5  Function Definition: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
      6 0:5    Function Parameters: 
      7 0:5      'tex' ( in structure{ temp sampler smpl,  temp texture2D tex})
      8 0:?     Sequence
      9 0:6      Branch: Return with expression
     10 0:6        texture ( temp 4-component vector of float)
     11 0:6          Construct combined texture-sampler ( temp sampler2D)
     12 0:6            tex: direct index for structure ( temp texture2D)
     13 0:6              'tex' ( in structure{ temp sampler smpl,  temp texture2D tex})
     14 0:6              Constant:
     15 0:6                1 (const int)
     16 0:6            smpl: direct index for structure ( temp sampler)
     17 0:6              'tex' ( in structure{ temp sampler smpl,  temp texture2D tex})
     18 0:6              Constant:
     19 0:6                0 (const int)
     20 0:?           Constant:
     21 0:?             0.300000
     22 0:?             0.400000
     23 0:10  Function Definition: fillOpaque( ( temp structure{ temp sampler smpl,  temp texture2D tex})
     24 0:10    Function Parameters: 
     25 0:?     Sequence
     26 0:12      move second child to first child ( temp sampler)
     27 0:12        smpl: direct index for structure ( temp sampler)
     28 0:12          't' ( temp structure{ temp sampler smpl,  temp texture2D tex})
     29 0:12          Constant:
     30 0:12            0 (const int)
     31 0:12        'g_tInputTexture_sampler' ( uniform sampler)
     32 0:13      move second child to first child ( temp texture2D)
     33 0:13        tex: direct index for structure ( temp texture2D)
     34 0:13          't' ( temp structure{ temp sampler smpl,  temp texture2D tex})
     35 0:13          Constant:
     36 0:13            1 (const int)
     37 0:13        'g_tInputTexture' ( uniform texture2D)
     38 0:14      Branch: Return with expression
     39 0:14        't' ( temp structure{ temp sampler smpl,  temp texture2D tex})
     40 0:18  Function Definition: @main( ( temp 4-component vector of float)
     41 0:18    Function Parameters: 
     42 0:?     Sequence
     43 0:19      Sequence
     44 0:19        move second child to first child ( temp structure{ temp sampler smpl,  temp texture2D tex})
     45 0:19          'tex1' ( temp structure{ temp sampler smpl,  temp texture2D tex})
     46 0:19          Construct structure ( temp structure{ temp sampler smpl,  temp texture2D tex})
     47 0:19            'g_tInputTexture_sampler' ( uniform sampler)
     48 0:19            'g_tInputTexture' ( uniform texture2D)
     49 0:20      Sequence
     50 0:20        move second child to first child ( temp 4-component vector of float)
     51 0:20          'res' ( temp 4-component vector of float)
     52 0:20          Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
     53 0:20            'tex1' ( temp structure{ temp sampler smpl,  temp texture2D tex})
     54 0:21      Sequence
     55 0:21        move second child to first child ( temp structure{ temp sampler smpl,  temp texture2D tex})
     56 0:21          'tex2' ( temp structure{ temp sampler smpl,  temp texture2D tex})
     57 0:21          Function Call: fillOpaque( ( temp structure{ temp sampler smpl,  temp texture2D tex})
     58 0:22      add second child into first child ( temp 4-component vector of float)
     59 0:22        'res' ( temp 4-component vector of float)
     60 0:22        Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
     61 0:22          'tex2' ( temp structure{ temp sampler smpl,  temp texture2D tex})
     62 0:23      Sequence
     63 0:23        move second child to first child ( temp structure{ temp sampler smpl,  temp texture2D tex})
     64 0:23          'tex3' ( temp structure{ temp sampler smpl,  temp texture2D tex})
     65 0:23          'tex1' ( temp structure{ temp sampler smpl,  temp texture2D tex})
     66 0:24      add second child into first child ( temp 4-component vector of float)
     67 0:24        'res' ( temp 4-component vector of float)
     68 0:24        Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
     69 0:24          'tex3' ( temp structure{ temp sampler smpl,  temp texture2D tex})
     70 0:26      Branch: Return with expression
     71 0:26        'res' ( temp 4-component vector of float)
     72 0:18  Function Definition: main( ( temp void)
     73 0:18    Function Parameters: 
     74 0:?     Sequence
     75 0:18      move second child to first child ( temp 4-component vector of float)
     76 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     77 0:18        Function Call: @main( ( temp 4-component vector of float)
     78 0:?   Linker Objects
     79 0:?     'g_tInputTexture_sampler' ( uniform sampler)
     80 0:?     'g_tInputTexture' ( uniform texture2D)
     81 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     82 
     83 
     84 Linked vertex stage:
     85 
     86 
     87 Shader version: 500
     88 0:? Sequence
     89 0:5  Function Definition: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
     90 0:5    Function Parameters: 
     91 0:5      'tex' ( in structure{ temp sampler smpl,  temp texture2D tex})
     92 0:?     Sequence
     93 0:6      Branch: Return with expression
     94 0:6        texture ( temp 4-component vector of float)
     95 0:6          Construct combined texture-sampler ( temp sampler2D)
     96 0:6            tex: direct index for structure ( temp texture2D)
     97 0:6              'tex' ( in structure{ temp sampler smpl,  temp texture2D tex})
     98 0:6              Constant:
     99 0:6                1 (const int)
    100 0:6            smpl: direct index for structure ( temp sampler)
    101 0:6              'tex' ( in structure{ temp sampler smpl,  temp texture2D tex})
    102 0:6              Constant:
    103 0:6                0 (const int)
    104 0:?           Constant:
    105 0:?             0.300000
    106 0:?             0.400000
    107 0:10  Function Definition: fillOpaque( ( temp structure{ temp sampler smpl,  temp texture2D tex})
    108 0:10    Function Parameters: 
    109 0:?     Sequence
    110 0:12      move second child to first child ( temp sampler)
    111 0:12        smpl: direct index for structure ( temp sampler)
    112 0:12          't' ( temp structure{ temp sampler smpl,  temp texture2D tex})
    113 0:12          Constant:
    114 0:12            0 (const int)
    115 0:12        'g_tInputTexture_sampler' ( uniform sampler)
    116 0:13      move second child to first child ( temp texture2D)
    117 0:13        tex: direct index for structure ( temp texture2D)
    118 0:13          't' ( temp structure{ temp sampler smpl,  temp texture2D tex})
    119 0:13          Constant:
    120 0:13            1 (const int)
    121 0:13        'g_tInputTexture' ( uniform texture2D)
    122 0:14      Branch: Return with expression
    123 0:14        't' ( temp structure{ temp sampler smpl,  temp texture2D tex})
    124 0:18  Function Definition: @main( ( temp 4-component vector of float)
    125 0:18    Function Parameters: 
    126 0:?     Sequence
    127 0:19      Sequence
    128 0:19        move second child to first child ( temp structure{ temp sampler smpl,  temp texture2D tex})
    129 0:19          'tex1' ( temp structure{ temp sampler smpl,  temp texture2D tex})
    130 0:19          Construct structure ( temp structure{ temp sampler smpl,  temp texture2D tex})
    131 0:19            'g_tInputTexture_sampler' ( uniform sampler)
    132 0:19            'g_tInputTexture' ( uniform texture2D)
    133 0:20      Sequence
    134 0:20        move second child to first child ( temp 4-component vector of float)
    135 0:20          'res' ( temp 4-component vector of float)
    136 0:20          Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
    137 0:20            'tex1' ( temp structure{ temp sampler smpl,  temp texture2D tex})
    138 0:21      Sequence
    139 0:21        move second child to first child ( temp structure{ temp sampler smpl,  temp texture2D tex})
    140 0:21          'tex2' ( temp structure{ temp sampler smpl,  temp texture2D tex})
    141 0:21          Function Call: fillOpaque( ( temp structure{ temp sampler smpl,  temp texture2D tex})
    142 0:22      add second child into first child ( temp 4-component vector of float)
    143 0:22        'res' ( temp 4-component vector of float)
    144 0:22        Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
    145 0:22          'tex2' ( temp structure{ temp sampler smpl,  temp texture2D tex})
    146 0:23      Sequence
    147 0:23        move second child to first child ( temp structure{ temp sampler smpl,  temp texture2D tex})
    148 0:23          'tex3' ( temp structure{ temp sampler smpl,  temp texture2D tex})
    149 0:23          'tex1' ( temp structure{ temp sampler smpl,  temp texture2D tex})
    150 0:24      add second child into first child ( temp 4-component vector of float)
    151 0:24        'res' ( temp 4-component vector of float)
    152 0:24        Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
    153 0:24          'tex3' ( temp structure{ temp sampler smpl,  temp texture2D tex})
    154 0:26      Branch: Return with expression
    155 0:26        'res' ( temp 4-component vector of float)
    156 0:18  Function Definition: main( ( temp void)
    157 0:18    Function Parameters: 
    158 0:?     Sequence
    159 0:18      move second child to first child ( temp 4-component vector of float)
    160 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
    161 0:18        Function Call: @main( ( temp 4-component vector of float)
    162 0:?   Linker Objects
    163 0:?     'g_tInputTexture_sampler' ( uniform sampler)
    164 0:?     'g_tInputTexture' ( uniform texture2D)
    165 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
    166 
    167 // Module Version 10000
    168 // Generated by (magic number): 80007
    169 // Id's are bound by 82
    170 
    171                               Capability Shader
    172                1:             ExtInstImport  "GLSL.std.450"
    173                               MemoryModel Logical GLSL450
    174                               EntryPoint Vertex 4  "main" 80
    175                               Source HLSL 500
    176                               Name 4  "main"
    177                               Name 9  "FxaaTex"
    178                               MemberName 9(FxaaTex) 0  "smpl"
    179                               MemberName 9(FxaaTex) 1  "tex"
    180                               Name 14  "lookUp(struct-FxaaTex-p1-t211;"
    181                               Name 13  "tex"
    182                               Name 17  "fillOpaque("
    183                               Name 20  "@main("
    184                               Name 41  "t"
    185                               Name 43  "g_tInputTexture_sampler"
    186                               Name 47  "g_tInputTexture"
    187                               Name 53  "tex1"
    188                               Name 58  "res"
    189                               Name 59  "param"
    190                               Name 62  "tex2"
    191                               Name 64  "param"
    192                               Name 69  "tex3"
    193                               Name 71  "param"
    194                               Name 80  "@entryPointOutput"
    195                               Decorate 43(g_tInputTexture_sampler) DescriptorSet 0
    196                               Decorate 43(g_tInputTexture_sampler) Binding 0
    197                               Decorate 47(g_tInputTexture) DescriptorSet 0
    198                               Decorate 47(g_tInputTexture) Binding 0
    199                               Decorate 80(@entryPointOutput) Location 0
    200                2:             TypeVoid
    201                3:             TypeFunction 2
    202                6:             TypeSampler
    203                7:             TypeFloat 32
    204                8:             TypeImage 7(float) 2D sampled format:Unknown
    205       9(FxaaTex):             TypeStruct 6 8
    206               10:             TypePointer Function 9(FxaaTex)
    207               11:             TypeVector 7(float) 4
    208               12:             TypeFunction 11(fvec4) 10(ptr)
    209               16:             TypeFunction 9(FxaaTex)
    210               19:             TypeFunction 11(fvec4)
    211               22:             TypeInt 32 1
    212               23:     22(int) Constant 1
    213               24:             TypePointer Function 8
    214               27:     22(int) Constant 0
    215               28:             TypePointer Function 6
    216               31:             TypeSampledImage 8
    217               33:             TypeVector 7(float) 2
    218               34:    7(float) Constant 1050253722
    219               35:    7(float) Constant 1053609165
    220               36:   33(fvec2) ConstantComposite 34 35
    221               37:    7(float) Constant 0
    222               42:             TypePointer UniformConstant 6
    223 43(g_tInputTexture_sampler):     42(ptr) Variable UniformConstant
    224               46:             TypePointer UniformConstant 8
    225 47(g_tInputTexture):     46(ptr) Variable UniformConstant
    226               57:             TypePointer Function 11(fvec4)
    227               79:             TypePointer Output 11(fvec4)
    228 80(@entryPointOutput):     79(ptr) Variable Output
    229          4(main):           2 Function None 3
    230                5:             Label
    231               81:   11(fvec4) FunctionCall 20(@main()
    232                               Store 80(@entryPointOutput) 81
    233                               Return
    234                               FunctionEnd
    235 14(lookUp(struct-FxaaTex-p1-t211;):   11(fvec4) Function None 12
    236          13(tex):     10(ptr) FunctionParameter
    237               15:             Label
    238               25:     24(ptr) AccessChain 13(tex) 23
    239               26:           8 Load 25
    240               29:     28(ptr) AccessChain 13(tex) 27
    241               30:           6 Load 29
    242               32:          31 SampledImage 26 30
    243               38:   11(fvec4) ImageSampleExplicitLod 32 36 Lod 37
    244                               ReturnValue 38
    245                               FunctionEnd
    246  17(fillOpaque():  9(FxaaTex) Function None 16
    247               18:             Label
    248            41(t):     10(ptr) Variable Function
    249               44:           6 Load 43(g_tInputTexture_sampler)
    250               45:     28(ptr) AccessChain 41(t) 27
    251                               Store 45 44
    252               48:           8 Load 47(g_tInputTexture)
    253               49:     24(ptr) AccessChain 41(t) 23
    254                               Store 49 48
    255               50:  9(FxaaTex) Load 41(t)
    256                               ReturnValue 50
    257                               FunctionEnd
    258       20(@main():   11(fvec4) Function None 19
    259               21:             Label
    260         53(tex1):     10(ptr) Variable Function
    261          58(res):     57(ptr) Variable Function
    262        59(param):     10(ptr) Variable Function
    263         62(tex2):     10(ptr) Variable Function
    264        64(param):     10(ptr) Variable Function
    265         69(tex3):     10(ptr) Variable Function
    266        71(param):     10(ptr) Variable Function
    267               54:           6 Load 43(g_tInputTexture_sampler)
    268               55:           8 Load 47(g_tInputTexture)
    269               56:  9(FxaaTex) CompositeConstruct 54 55
    270                               Store 53(tex1) 56
    271               60:  9(FxaaTex) Load 53(tex1)
    272                               Store 59(param) 60
    273               61:   11(fvec4) FunctionCall 14(lookUp(struct-FxaaTex-p1-t211;) 59(param)
    274                               Store 58(res) 61
    275               63:  9(FxaaTex) FunctionCall 17(fillOpaque()
    276                               Store 62(tex2) 63
    277               65:  9(FxaaTex) Load 62(tex2)
    278                               Store 64(param) 65
    279               66:   11(fvec4) FunctionCall 14(lookUp(struct-FxaaTex-p1-t211;) 64(param)
    280               67:   11(fvec4) Load 58(res)
    281               68:   11(fvec4) FAdd 67 66
    282                               Store 58(res) 68
    283               70:  9(FxaaTex) Load 53(tex1)
    284                               Store 69(tex3) 70
    285               72:  9(FxaaTex) Load 69(tex3)
    286                               Store 71(param) 72
    287               73:   11(fvec4) FunctionCall 14(lookUp(struct-FxaaTex-p1-t211;) 71(param)
    288               74:   11(fvec4) Load 58(res)
    289               75:   11(fvec4) FAdd 74 73
    290                               Store 58(res) 75
    291               76:   11(fvec4) Load 58(res)
    292                               ReturnValue 76
    293                               FunctionEnd
    294