Home | History | Annotate | Download | only in baseResults
      1 hlsl.flattenSubset.frag
      2 WARNING: AST will form illegal SPIR-V; need to transform to legalize
      3 Shader version: 500
      4 gl_FragCoord origin is upper left
      5 0:? Sequence
      6 0:30  Function Definition: @main(vf4; ( temp 4-component vector of float)
      7 0:30    Function Parameters: 
      8 0:30      'vpos' ( in 4-component vector of float)
      9 0:?     Sequence
     10 0:33      move second child to first child ( temp sampler)
     11 0:33        ss: direct index for structure ( temp sampler)
     12 0:33          s0: direct index for structure ( temp structure{ temp int x,  temp int y,  temp sampler ss})
     13 0:33            's1' ( temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a})
     14 0:33            Constant:
     15 0:33              2 (const int)
     16 0:33          Constant:
     17 0:33            2 (const int)
     18 0:33        'samp' ( uniform sampler)
     19 0:34      move second child to first child ( temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a})
     20 0:34        resources: direct index for structure ( temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a})
     21 0:34          's2' ( temp structure{ temp int a1,  temp int a2,  temp int a3,  temp int a4,  temp int a5,  temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a} resources})
     22 0:34          Constant:
     23 0:34            5 (const int)
     24 0:34        's1' ( temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a})
     25 0:35      Branch: Return with expression
     26 0:35        texture ( temp 4-component vector of float)
     27 0:35          Construct combined texture-sampler ( temp sampler2D)
     28 0:35            'tex' ( uniform texture2D)
     29 0:35            ss: direct index for structure ( temp sampler)
     30 0:35              s0: direct index for structure ( temp structure{ temp int x,  temp int y,  temp sampler ss})
     31 0:35                resources: direct index for structure ( temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a})
     32 0:35                  's2' ( temp structure{ temp int a1,  temp int a2,  temp int a3,  temp int a4,  temp int a5,  temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a} resources})
     33 0:35                  Constant:
     34 0:35                    5 (const int)
     35 0:35                Constant:
     36 0:35                  2 (const int)
     37 0:35              Constant:
     38 0:35                2 (const int)
     39 0:35          Constant:
     40 0:35            0.500000
     41 0:35            0.500000
     42 0:30  Function Definition: main( ( temp void)
     43 0:30    Function Parameters: 
     44 0:?     Sequence
     45 0:30      move second child to first child ( temp 4-component vector of float)
     46 0:?         'vpos' ( temp 4-component vector of float)
     47 0:?         'vpos' (layout( location=0) in 4-component vector of float)
     48 0:30      move second child to first child ( temp 4-component vector of float)
     49 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     50 0:30        Function Call: @main(vf4; ( temp 4-component vector of float)
     51 0:?           'vpos' ( temp 4-component vector of float)
     52 0:?   Linker Objects
     53 0:?     'samp' ( uniform sampler)
     54 0:?     'tex' ( uniform texture2D)
     55 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     56 0:?     'vpos' (layout( location=0) in 4-component vector of float)
     57 
     58 
     59 Linked fragment stage:
     60 
     61 
     62 Shader version: 500
     63 gl_FragCoord origin is upper left
     64 0:? Sequence
     65 0:30  Function Definition: @main(vf4; ( temp 4-component vector of float)
     66 0:30    Function Parameters: 
     67 0:30      'vpos' ( in 4-component vector of float)
     68 0:?     Sequence
     69 0:33      move second child to first child ( temp sampler)
     70 0:33        ss: direct index for structure ( temp sampler)
     71 0:33          s0: direct index for structure ( temp structure{ temp int x,  temp int y,  temp sampler ss})
     72 0:33            's1' ( temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a})
     73 0:33            Constant:
     74 0:33              2 (const int)
     75 0:33          Constant:
     76 0:33            2 (const int)
     77 0:33        'samp' ( uniform sampler)
     78 0:34      move second child to first child ( temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a})
     79 0:34        resources: direct index for structure ( temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a})
     80 0:34          's2' ( temp structure{ temp int a1,  temp int a2,  temp int a3,  temp int a4,  temp int a5,  temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a} resources})
     81 0:34          Constant:
     82 0:34            5 (const int)
     83 0:34        's1' ( temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a})
     84 0:35      Branch: Return with expression
     85 0:35        texture ( temp 4-component vector of float)
     86 0:35          Construct combined texture-sampler ( temp sampler2D)
     87 0:35            'tex' ( uniform texture2D)
     88 0:35            ss: direct index for structure ( temp sampler)
     89 0:35              s0: direct index for structure ( temp structure{ temp int x,  temp int y,  temp sampler ss})
     90 0:35                resources: direct index for structure ( temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a})
     91 0:35                  's2' ( temp structure{ temp int a1,  temp int a2,  temp int a3,  temp int a4,  temp int a5,  temp structure{ temp float b,  temp sampler samplerState,  temp structure{ temp int x,  temp int y,  temp sampler ss} s0,  temp int a} resources})
     92 0:35                  Constant:
     93 0:35                    5 (const int)
     94 0:35                Constant:
     95 0:35                  2 (const int)
     96 0:35              Constant:
     97 0:35                2 (const int)
     98 0:35          Constant:
     99 0:35            0.500000
    100 0:35            0.500000
    101 0:30  Function Definition: main( ( temp void)
    102 0:30    Function Parameters: 
    103 0:?     Sequence
    104 0:30      move second child to first child ( temp 4-component vector of float)
    105 0:?         'vpos' ( temp 4-component vector of float)
    106 0:?         'vpos' (layout( location=0) in 4-component vector of float)
    107 0:30      move second child to first child ( temp 4-component vector of float)
    108 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
    109 0:30        Function Call: @main(vf4; ( temp 4-component vector of float)
    110 0:?           'vpos' ( temp 4-component vector of float)
    111 0:?   Linker Objects
    112 0:?     'samp' ( uniform sampler)
    113 0:?     'tex' ( uniform texture2D)
    114 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
    115 0:?     'vpos' (layout( location=0) in 4-component vector of float)
    116 
    117 // Module Version 10000
    118 // Generated by (magic number): 80007
    119 // Id's are bound by 54
    120 
    121                               Capability Shader
    122                1:             ExtInstImport  "GLSL.std.450"
    123                               MemoryModel Logical GLSL450
    124                               EntryPoint Fragment 4  "main" 47 50
    125                               ExecutionMode 4 OriginUpperLeft
    126                               Source HLSL 500
    127                               Name 4  "main"
    128                               Name 11  "@main(vf4;"
    129                               Name 10  "vpos"
    130                               Name 15  "S0"
    131                               MemberName 15(S0) 0  "x"
    132                               MemberName 15(S0) 1  "y"
    133                               MemberName 15(S0) 2  "ss"
    134                               Name 16  "S1"
    135                               MemberName 16(S1) 0  "b"
    136                               MemberName 16(S1) 1  "samplerState"
    137                               MemberName 16(S1) 2  "s0"
    138                               MemberName 16(S1) 3  "a"
    139                               Name 18  "s1"
    140                               Name 21  "samp"
    141                               Name 25  "S2"
    142                               MemberName 25(S2) 0  "a1"
    143                               MemberName 25(S2) 1  "a2"
    144                               MemberName 25(S2) 2  "a3"
    145                               MemberName 25(S2) 3  "a4"
    146                               MemberName 25(S2) 4  "a5"
    147                               MemberName 25(S2) 5  "resources"
    148                               Name 27  "s2"
    149                               Name 33  "tex"
    150                               Name 45  "vpos"
    151                               Name 47  "vpos"
    152                               Name 50  "@entryPointOutput"
    153                               Name 51  "param"
    154                               Decorate 21(samp) DescriptorSet 0
    155                               Decorate 21(samp) Binding 0
    156                               Decorate 33(tex) DescriptorSet 0
    157                               Decorate 33(tex) Binding 0
    158                               Decorate 47(vpos) Location 0
    159                               Decorate 50(@entryPointOutput) Location 0
    160                2:             TypeVoid
    161                3:             TypeFunction 2
    162                6:             TypeFloat 32
    163                7:             TypeVector 6(float) 4
    164                8:             TypePointer Function 7(fvec4)
    165                9:             TypeFunction 7(fvec4) 8(ptr)
    166               13:             TypeSampler
    167               14:             TypeInt 32 1
    168           15(S0):             TypeStruct 14(int) 14(int) 13
    169           16(S1):             TypeStruct 6(float) 13 15(S0) 14(int)
    170               17:             TypePointer Function 16(S1)
    171               19:     14(int) Constant 2
    172               20:             TypePointer UniformConstant 13
    173         21(samp):     20(ptr) Variable UniformConstant
    174               23:             TypePointer Function 13
    175           25(S2):             TypeStruct 14(int) 14(int) 14(int) 14(int) 14(int) 16(S1)
    176               26:             TypePointer Function 25(S2)
    177               28:     14(int) Constant 5
    178               31:             TypeImage 6(float) 2D sampled format:Unknown
    179               32:             TypePointer UniformConstant 31
    180          33(tex):     32(ptr) Variable UniformConstant
    181               37:             TypeSampledImage 31
    182               39:             TypeVector 6(float) 2
    183               40:    6(float) Constant 1056964608
    184               41:   39(fvec2) ConstantComposite 40 40
    185               46:             TypePointer Input 7(fvec4)
    186         47(vpos):     46(ptr) Variable Input
    187               49:             TypePointer Output 7(fvec4)
    188 50(@entryPointOutput):     49(ptr) Variable Output
    189          4(main):           2 Function None 3
    190                5:             Label
    191         45(vpos):      8(ptr) Variable Function
    192        51(param):      8(ptr) Variable Function
    193               48:    7(fvec4) Load 47(vpos)
    194                               Store 45(vpos) 48
    195               52:    7(fvec4) Load 45(vpos)
    196                               Store 51(param) 52
    197               53:    7(fvec4) FunctionCall 11(@main(vf4;) 51(param)
    198                               Store 50(@entryPointOutput) 53
    199                               Return
    200                               FunctionEnd
    201   11(@main(vf4;):    7(fvec4) Function None 9
    202         10(vpos):      8(ptr) FunctionParameter
    203               12:             Label
    204           18(s1):     17(ptr) Variable Function
    205           27(s2):     26(ptr) Variable Function
    206               22:          13 Load 21(samp)
    207               24:     23(ptr) AccessChain 18(s1) 19 19
    208                               Store 24 22
    209               29:      16(S1) Load 18(s1)
    210               30:     17(ptr) AccessChain 27(s2) 28
    211                               Store 30 29
    212               34:          31 Load 33(tex)
    213               35:     23(ptr) AccessChain 27(s2) 28 19 19
    214               36:          13 Load 35
    215               38:          37 SampledImage 34 36
    216               42:    7(fvec4) ImageSampleImplicitLod 38 41
    217                               ReturnValue 42
    218                               FunctionEnd
    219