Home | History | Annotate | Download | only in baseResults
      1 hlsl.promote.binary.frag
      2 Shader version: 500
      3 gl_FragCoord origin is upper left
      4 0:? Sequence
      5 0:14  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
      6 0:14    Function Parameters: 
      7 0:?     Sequence
      8 0:15      mod ( temp float)
      9 0:15        Convert int to float ( temp float)
     10 0:15          ival: direct index for structure ( uniform int)
     11 0:15            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
     12 0:15            Constant:
     13 0:15              2 (const uint)
     14 0:15        fval: direct index for structure ( uniform float)
     15 0:15          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
     16 0:15          Constant:
     17 0:15            4 (const uint)
     18 0:16      mod ( temp 4-component vector of float)
     19 0:16        Convert int to float ( temp 4-component vector of float)
     20 0:16          ival4: direct index for structure ( uniform 4-component vector of int)
     21 0:16            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
     22 0:16            Constant:
     23 0:16              3 (const uint)
     24 0:16        fval4: direct index for structure ( uniform 4-component vector of float)
     25 0:16          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
     26 0:16          Constant:
     27 0:16            5 (const uint)
     28 0:18      mod ( temp float)
     29 0:18        Convert bool to float ( temp float)
     30 0:18          bval: direct index for structure ( uniform bool)
     31 0:18            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
     32 0:18            Constant:
     33 0:18              0 (const uint)
     34 0:18        fval: direct index for structure ( uniform float)
     35 0:18          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
     36 0:18          Constant:
     37 0:18            4 (const uint)
     38 0:19      mod ( temp 4-component vector of float)
     39 0:19        Convert bool to float ( temp 4-component vector of float)
     40 0:19          bval4: direct index for structure ( uniform 4-component vector of bool)
     41 0:19            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
     42 0:19            Constant:
     43 0:19              1 (const uint)
     44 0:19        fval4: direct index for structure ( uniform 4-component vector of float)
     45 0:19          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
     46 0:19          Constant:
     47 0:19            5 (const uint)
     48 0:21      Sequence
     49 0:21        move second child to first child ( temp int)
     50 0:21          'l_int' ( temp int)
     51 0:21          Constant:
     52 0:21            1 (const int)
     53 0:22      mod second child into first child ( temp int)
     54 0:22        'l_int' ( temp int)
     55 0:22        Convert float to int ( temp int)
     56 0:22          fval: direct index for structure ( uniform float)
     57 0:22            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
     58 0:22            Constant:
     59 0:22              4 (const uint)
     60 0:25      move second child to first child ( temp 4-component vector of float)
     61 0:25        Color: direct index for structure ( temp 4-component vector of float)
     62 0:25          'psout' ( temp structure{ temp 4-component vector of float Color})
     63 0:25          Constant:
     64 0:25            0 (const int)
     65 0:25        Constant:
     66 0:25          0.000000
     67 0:25          0.000000
     68 0:25          0.000000
     69 0:25          0.000000
     70 0:26      Branch: Return with expression
     71 0:26        'psout' ( temp structure{ temp 4-component vector of float Color})
     72 0:14  Function Definition: main( ( temp void)
     73 0:14    Function Parameters: 
     74 0:?     Sequence
     75 0:14      Sequence
     76 0:14        move second child to first child ( temp 4-component vector of float)
     77 0:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
     78 0:14          Color: direct index for structure ( temp 4-component vector of float)
     79 0:14            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
     80 0:14            Constant:
     81 0:14              0 (const int)
     82 0:?   Linker Objects
     83 0:?     'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
     84 0:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
     85 
     86 
     87 Linked fragment stage:
     88 
     89 
     90 Shader version: 500
     91 gl_FragCoord origin is upper left
     92 0:? Sequence
     93 0:14  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
     94 0:14    Function Parameters: 
     95 0:?     Sequence
     96 0:15      mod ( temp float)
     97 0:15        Convert int to float ( temp float)
     98 0:15          ival: direct index for structure ( uniform int)
     99 0:15            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
    100 0:15            Constant:
    101 0:15              2 (const uint)
    102 0:15        fval: direct index for structure ( uniform float)
    103 0:15          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
    104 0:15          Constant:
    105 0:15            4 (const uint)
    106 0:16      mod ( temp 4-component vector of float)
    107 0:16        Convert int to float ( temp 4-component vector of float)
    108 0:16          ival4: direct index for structure ( uniform 4-component vector of int)
    109 0:16            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
    110 0:16            Constant:
    111 0:16              3 (const uint)
    112 0:16        fval4: direct index for structure ( uniform 4-component vector of float)
    113 0:16          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
    114 0:16          Constant:
    115 0:16            5 (const uint)
    116 0:18      mod ( temp float)
    117 0:18        Convert bool to float ( temp float)
    118 0:18          bval: direct index for structure ( uniform bool)
    119 0:18            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
    120 0:18            Constant:
    121 0:18              0 (const uint)
    122 0:18        fval: direct index for structure ( uniform float)
    123 0:18          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
    124 0:18          Constant:
    125 0:18            4 (const uint)
    126 0:19      mod ( temp 4-component vector of float)
    127 0:19        Convert bool to float ( temp 4-component vector of float)
    128 0:19          bval4: direct index for structure ( uniform 4-component vector of bool)
    129 0:19            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
    130 0:19            Constant:
    131 0:19              1 (const uint)
    132 0:19        fval4: direct index for structure ( uniform 4-component vector of float)
    133 0:19          'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
    134 0:19          Constant:
    135 0:19            5 (const uint)
    136 0:21      Sequence
    137 0:21        move second child to first child ( temp int)
    138 0:21          'l_int' ( temp int)
    139 0:21          Constant:
    140 0:21            1 (const int)
    141 0:22      mod second child into first child ( temp int)
    142 0:22        'l_int' ( temp int)
    143 0:22        Convert float to int ( temp int)
    144 0:22          fval: direct index for structure ( uniform float)
    145 0:22            'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
    146 0:22            Constant:
    147 0:22              4 (const uint)
    148 0:25      move second child to first child ( temp 4-component vector of float)
    149 0:25        Color: direct index for structure ( temp 4-component vector of float)
    150 0:25          'psout' ( temp structure{ temp 4-component vector of float Color})
    151 0:25          Constant:
    152 0:25            0 (const int)
    153 0:25        Constant:
    154 0:25          0.000000
    155 0:25          0.000000
    156 0:25          0.000000
    157 0:25          0.000000
    158 0:26      Branch: Return with expression
    159 0:26        'psout' ( temp structure{ temp 4-component vector of float Color})
    160 0:14  Function Definition: main( ( temp void)
    161 0:14    Function Parameters: 
    162 0:?     Sequence
    163 0:14      Sequence
    164 0:14        move second child to first child ( temp 4-component vector of float)
    165 0:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
    166 0:14          Color: direct index for structure ( temp 4-component vector of float)
    167 0:14            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
    168 0:14            Constant:
    169 0:14              0 (const int)
    170 0:?   Linker Objects
    171 0:?     'anon@0' (layout( row_major std140) uniform block{ uniform bool bval,  uniform 4-component vector of bool bval4,  uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
    172 0:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
    173 
    174 // Module Version 10000
    175 // Generated by (magic number): 80007
    176 // Id's are bound by 83
    177 
    178                               Capability Shader
    179                1:             ExtInstImport  "GLSL.std.450"
    180                               MemoryModel Logical GLSL450
    181                               EntryPoint Fragment 4  "main" 80
    182                               ExecutionMode 4 OriginUpperLeft
    183                               Source HLSL 500
    184                               Name 4  "main"
    185                               Name 8  "PS_OUTPUT"
    186                               MemberName 8(PS_OUTPUT) 0  "Color"
    187                               Name 10  "@main("
    188                               Name 16  "$Global"
    189                               MemberName 16($Global) 0  "bval"
    190                               MemberName 16($Global) 1  "bval4"
    191                               MemberName 16($Global) 2  "ival"
    192                               MemberName 16($Global) 3  "ival4"
    193                               MemberName 16($Global) 4  "fval"
    194                               MemberName 16($Global) 5  "fval4"
    195                               Name 18  ""
    196                               Name 66  "l_int"
    197                               Name 73  "psout"
    198                               Name 80  "@entryPointOutput.Color"
    199                               MemberDecorate 16($Global) 0 Offset 0
    200                               MemberDecorate 16($Global) 1 Offset 16
    201                               MemberDecorate 16($Global) 2 Offset 32
    202                               MemberDecorate 16($Global) 3 Offset 48
    203                               MemberDecorate 16($Global) 4 Offset 64
    204                               MemberDecorate 16($Global) 5 Offset 80
    205                               Decorate 16($Global) Block
    206                               Decorate 18 DescriptorSet 0
    207                               Decorate 18 Binding 0
    208                               Decorate 80(@entryPointOutput.Color) Location 0
    209                2:             TypeVoid
    210                3:             TypeFunction 2
    211                6:             TypeFloat 32
    212                7:             TypeVector 6(float) 4
    213     8(PS_OUTPUT):             TypeStruct 7(fvec4)
    214                9:             TypeFunction 8(PS_OUTPUT)
    215               12:             TypeInt 32 0
    216               13:             TypeVector 12(int) 4
    217               14:             TypeInt 32 1
    218               15:             TypeVector 14(int) 4
    219      16($Global):             TypeStruct 12(int) 13(ivec4) 14(int) 15(ivec4) 6(float) 7(fvec4)
    220               17:             TypePointer Uniform 16($Global)
    221               18:     17(ptr) Variable Uniform
    222               19:     14(int) Constant 2
    223               20:             TypePointer Uniform 14(int)
    224               24:     14(int) Constant 4
    225               25:             TypePointer Uniform 6(float)
    226               29:     14(int) Constant 3
    227               30:             TypePointer Uniform 15(ivec4)
    228               34:     14(int) Constant 5
    229               35:             TypePointer Uniform 7(fvec4)
    230               39:     14(int) Constant 0
    231               40:             TypePointer Uniform 12(int)
    232               43:             TypeBool
    233               44:     12(int) Constant 0
    234               46:    6(float) Constant 0
    235               47:    6(float) Constant 1065353216
    236               52:     14(int) Constant 1
    237               53:             TypePointer Uniform 13(ivec4)
    238               56:             TypeVector 43(bool) 4
    239               57:   13(ivec4) ConstantComposite 44 44 44 44
    240               59:    7(fvec4) ConstantComposite 46 46 46 46
    241               60:    7(fvec4) ConstantComposite 47 47 47 47
    242               65:             TypePointer Function 14(int)
    243               72:             TypePointer Function 8(PS_OUTPUT)
    244               74:             TypePointer Function 7(fvec4)
    245               79:             TypePointer Output 7(fvec4)
    246 80(@entryPointOutput.Color):     79(ptr) Variable Output
    247          4(main):           2 Function None 3
    248                5:             Label
    249               81:8(PS_OUTPUT) FunctionCall 10(@main()
    250               82:    7(fvec4) CompositeExtract 81 0
    251                               Store 80(@entryPointOutput.Color) 82
    252                               Return
    253                               FunctionEnd
    254       10(@main():8(PS_OUTPUT) Function None 9
    255               11:             Label
    256        66(l_int):     65(ptr) Variable Function
    257        73(psout):     72(ptr) Variable Function
    258               21:     20(ptr) AccessChain 18 19
    259               22:     14(int) Load 21
    260               23:    6(float) ConvertSToF 22
    261               26:     25(ptr) AccessChain 18 24
    262               27:    6(float) Load 26
    263               28:    6(float) FMod 23 27
    264               31:     30(ptr) AccessChain 18 29
    265               32:   15(ivec4) Load 31
    266               33:    7(fvec4) ConvertSToF 32
    267               36:     35(ptr) AccessChain 18 34
    268               37:    7(fvec4) Load 36
    269               38:    7(fvec4) FMod 33 37
    270               41:     40(ptr) AccessChain 18 39
    271               42:     12(int) Load 41
    272               45:    43(bool) INotEqual 42 44
    273               48:    6(float) Select 45 47 46
    274               49:     25(ptr) AccessChain 18 24
    275               50:    6(float) Load 49
    276               51:    6(float) FMod 48 50
    277               54:     53(ptr) AccessChain 18 52
    278               55:   13(ivec4) Load 54
    279               58:   56(bvec4) INotEqual 55 57
    280               61:    7(fvec4) Select 58 60 59
    281               62:     35(ptr) AccessChain 18 34
    282               63:    7(fvec4) Load 62
    283               64:    7(fvec4) FMod 61 63
    284                               Store 66(l_int) 52
    285               67:     25(ptr) AccessChain 18 24
    286               68:    6(float) Load 67
    287               69:     14(int) ConvertFToS 68
    288               70:     14(int) Load 66(l_int)
    289               71:     14(int) SMod 70 69
    290                               Store 66(l_int) 71
    291               75:     74(ptr) AccessChain 73(psout) 39
    292                               Store 75 59
    293               76:8(PS_OUTPUT) Load 73(psout)
    294                               ReturnValue 76
    295                               FunctionEnd
    296