Home | History | Annotate | Download | only in baseResults
      1 spv.earlyReturnDiscard.frag
      2 // Module Version 10000
      3 // Generated by (magic number): 80007
      4 // Id's are bound by 110
      5 
      6                               Capability Shader
      7                1:             ExtInstImport  "GLSL.std.450"
      8                               MemoryModel Logical GLSL450
      9                               EntryPoint Fragment 4  "main" 11 14 17 19 25 30 39 51 63 105 109
     10                               ExecutionMode 4 OriginUpperLeft
     11                               Source GLSL 140
     12                               Name 4  "main"
     13                               Name 9  "color"
     14                               Name 11  "BaseColor"
     15                               Name 13  "color2"
     16                               Name 14  "otherColor"
     17                               Name 17  "c"
     18                               Name 19  "d"
     19                               Name 25  "bigColor"
     20                               Name 30  "smallColor"
     21                               Name 39  "minimum"
     22                               Name 51  "threshhold"
     23                               Name 63  "threshhold2"
     24                               Name 77  "b"
     25                               Name 105  "gl_FragColor"
     26                               Name 109  "threshhold3"
     27                               Decorate 105(gl_FragColor) Location 0
     28                2:             TypeVoid
     29                3:             TypeFunction 2
     30                6:             TypeFloat 32
     31                7:             TypeVector 6(float) 4
     32                8:             TypePointer Function 7(fvec4)
     33               10:             TypePointer Input 7(fvec4)
     34    11(BaseColor):     10(ptr) Variable Input
     35   14(otherColor):     10(ptr) Variable Input
     36               16:             TypePointer Input 6(float)
     37            17(c):     16(ptr) Variable Input
     38            19(d):     16(ptr) Variable Input
     39               21:             TypeBool
     40     25(bigColor):     10(ptr) Variable Input
     41   30(smallColor):     10(ptr) Variable Input
     42               34:             TypeInt 32 0
     43               35:     34(int) Constant 2
     44               36:             TypePointer Function 6(float)
     45      39(minimum):     16(ptr) Variable Input
     46               47:    6(float) Constant 1065353216
     47   51(threshhold):     16(ptr) Variable Input
     48               60:     34(int) Constant 3
     49  63(threshhold2):     16(ptr) Variable Input
     50               76:             TypePointer Private 21(bool)
     51            77(b):     76(ptr) Variable Private
     52               85:     34(int) Constant 0
     53              104:             TypePointer Output 7(fvec4)
     54 105(gl_FragColor):    104(ptr) Variable Output
     55 109(threshhold3):     16(ptr) Variable Input
     56          4(main):           2 Function None 3
     57                5:             Label
     58         9(color):      8(ptr) Variable Function
     59       13(color2):      8(ptr) Variable Function
     60               12:    7(fvec4) Load 11(BaseColor)
     61                               Store 9(color) 12
     62               15:    7(fvec4) Load 14(otherColor)
     63                               Store 13(color2) 15
     64               18:    6(float) Load 17(c)
     65               20:    6(float) Load 19(d)
     66               22:    21(bool) FOrdGreaterThan 18 20
     67                               SelectionMerge 24 None
     68                               BranchConditional 22 23 29
     69               23:               Label
     70               26:    7(fvec4)   Load 25(bigColor)
     71               27:    7(fvec4)   Load 9(color)
     72               28:    7(fvec4)   FAdd 27 26
     73                                 Store 9(color) 28
     74                                 Branch 24
     75               29:               Label
     76               31:    7(fvec4)   Load 30(smallColor)
     77               32:    7(fvec4)   Load 9(color)
     78               33:    7(fvec4)   FAdd 32 31
     79                                 Store 9(color) 33
     80                                 Branch 24
     81               24:             Label
     82               37:     36(ptr) AccessChain 9(color) 35
     83               38:    6(float) Load 37
     84               40:    6(float) Load 39(minimum)
     85               41:    21(bool) FOrdLessThan 38 40
     86                               SelectionMerge 43 None
     87                               BranchConditional 41 42 43
     88               42:               Label
     89                                 Return
     90               43:             Label
     91               45:     36(ptr) AccessChain 9(color) 35
     92               46:    6(float) Load 45
     93               48:    6(float) FAdd 46 47
     94                               Store 45 48
     95               49:     36(ptr) AccessChain 9(color) 35
     96               50:    6(float) Load 49
     97               52:    6(float) Load 51(threshhold)
     98               53:    21(bool) FOrdGreaterThan 50 52
     99                               SelectionMerge 55 None
    100                               BranchConditional 53 54 55
    101               54:               Label
    102                                 Kill
    103               55:             Label
    104               57:    7(fvec4) Load 9(color)
    105               58:    7(fvec4) CompositeConstruct 47 47 47 47
    106               59:    7(fvec4) FAdd 57 58
    107                               Store 9(color) 59
    108               61:     36(ptr) AccessChain 9(color) 60
    109               62:    6(float) Load 61
    110               64:    6(float) Load 63(threshhold2)
    111               65:    21(bool) FOrdGreaterThan 62 64
    112                               SelectionMerge 67 None
    113                               BranchConditional 65 66 97
    114               66:               Label
    115               68:     36(ptr)   AccessChain 9(color) 35
    116               69:    6(float)   Load 68
    117               70:    6(float)   Load 63(threshhold2)
    118               71:    21(bool)   FOrdGreaterThan 69 70
    119                                 SelectionMerge 73 None
    120                                 BranchConditional 71 72 75
    121               72:                 Label
    122                                   Return
    123               75:                 Label
    124               78:    21(bool)     Load 77(b)
    125                                   SelectionMerge 80 None
    126                                   BranchConditional 78 79 84
    127               79:                   Label
    128               81:     36(ptr)       AccessChain 9(color) 35
    129               82:    6(float)       Load 81
    130               83:    6(float)       FAdd 82 47
    131                                     Store 81 83
    132                                     Branch 80
    133               84:                   Label
    134               86:     36(ptr)       AccessChain 9(color) 85
    135               87:    6(float)       Load 86
    136               88:    6(float)       Load 39(minimum)
    137               89:    21(bool)       FOrdLessThan 87 88
    138                                     SelectionMerge 91 None
    139                                     BranchConditional 89 90 93
    140               90:                     Label
    141                                       Kill
    142               93:                     Label
    143               94:    7(fvec4)         Load 9(color)
    144               95:    7(fvec4)         CompositeConstruct 47 47 47 47
    145               96:    7(fvec4)         FAdd 94 95
    146                                       Store 9(color) 96
    147                                       Branch 91
    148               91:                   Label
    149                                     Branch 80
    150               80:                 Label
    151                                   Branch 73
    152               73:               Label
    153                                 Branch 67
    154               97:               Label
    155               98:    21(bool)   Load 77(b)
    156                                 SelectionMerge 100 None
    157                                 BranchConditional 98 99 102
    158               99:                 Label
    159                                   Kill
    160              102:                 Label
    161                                   Return
    162              100:               Label
    163                                 Branch 67
    164               67:             Label
    165              106:    7(fvec4) Load 9(color)
    166              107:    7(fvec4) Load 13(color2)
    167              108:    7(fvec4) FMul 106 107
    168                               Store 105(gl_FragColor) 108
    169                               Return
    170                               FunctionEnd
    171