Home | History | Annotate | Download | only in baseResults
      1 spv.forwardFun.frag
      2 // Module Version 10000
      3 // Generated by (magic number): 80007
      4 // Id's are bound by 60
      5 
      6                               Capability Shader
      7                1:             ExtInstImport  "GLSL.std.450"
      8                               MemoryModel Logical GLSL450
      9                               EntryPoint Fragment 4  "main" 20 30 36 59
     10                               ExecutionMode 4 OriginUpperLeft
     11                               Source GLSL 140
     12                               Name 4  "main"
     13                               Name 6  "bar("
     14                               Name 10  "unreachableReturn("
     15                               Name 16  "foo(vf4;"
     16                               Name 15  "bar"
     17                               Name 18  "color"
     18                               Name 20  "BaseColor"
     19                               Name 21  "param"
     20                               Name 27  "f"
     21                               Name 30  "gl_FragColor"
     22                               Name 36  "d"
     23                               Name 59  "bigColor"
     24                               Decorate 10(unreachableReturn() RelaxedPrecision
     25                               Decorate 16(foo(vf4;) RelaxedPrecision
     26                               Decorate 15(bar) RelaxedPrecision
     27                               Decorate 18(color) RelaxedPrecision
     28                               Decorate 20(BaseColor) RelaxedPrecision
     29                               Decorate 22 RelaxedPrecision
     30                               Decorate 23 RelaxedPrecision
     31                               Decorate 24 RelaxedPrecision
     32                               Decorate 27(f) RelaxedPrecision
     33                               Decorate 28 RelaxedPrecision
     34                               Decorate 30(gl_FragColor) RelaxedPrecision
     35                               Decorate 30(gl_FragColor) Location 0
     36                               Decorate 31 RelaxedPrecision
     37                               Decorate 32 RelaxedPrecision
     38                               Decorate 33 RelaxedPrecision
     39                               Decorate 36(d) RelaxedPrecision
     40                               Decorate 37 RelaxedPrecision
     41                               Decorate 52 RelaxedPrecision
     42                               Decorate 55 RelaxedPrecision
     43                               Decorate 56 RelaxedPrecision
     44                               Decorate 59(bigColor) RelaxedPrecision
     45                2:             TypeVoid
     46                3:             TypeFunction 2
     47                8:             TypeFloat 32
     48                9:             TypeFunction 8(float)
     49               12:             TypeVector 8(float) 4
     50               13:             TypePointer Function 12(fvec4)
     51               14:             TypeFunction 8(float) 13(ptr)
     52               19:             TypePointer Input 12(fvec4)
     53    20(BaseColor):     19(ptr) Variable Input
     54               26:             TypePointer Function 8(float)
     55               29:             TypePointer Output 12(fvec4)
     56 30(gl_FragColor):     29(ptr) Variable Output
     57               35:             TypePointer Input 8(float)
     58            36(d):     35(ptr) Variable Input
     59               38:    8(float) Constant 1082549862
     60               39:             TypeBool
     61               43:    8(float) Constant 1067030938
     62               46:    8(float) Constant 1083179008
     63               49:             TypeInt 32 0
     64               50:     49(int) Constant 0
     65               53:     49(int) Constant 1
     66     59(bigColor):     19(ptr) Variable Input
     67          4(main):           2 Function None 3
     68                5:             Label
     69        18(color):     13(ptr) Variable Function
     70        21(param):     13(ptr) Variable Function
     71            27(f):     26(ptr) Variable Function
     72               22:   12(fvec4) Load 20(BaseColor)
     73                               Store 21(param) 22
     74               23:    8(float) FunctionCall 16(foo(vf4;) 21(param)
     75               24:   12(fvec4) CompositeConstruct 23 23 23 23
     76                               Store 18(color) 24
     77               25:           2 FunctionCall 6(bar()
     78               28:    8(float) FunctionCall 10(unreachableReturn()
     79                               Store 27(f) 28
     80               31:   12(fvec4) Load 18(color)
     81               32:    8(float) Load 27(f)
     82               33:   12(fvec4) VectorTimesScalar 31 32
     83                               Store 30(gl_FragColor) 33
     84                               Return
     85                               FunctionEnd
     86          6(bar():           2 Function None 3
     87                7:             Label
     88                               Return
     89                               FunctionEnd
     90 10(unreachableReturn():    8(float) Function None 9
     91               11:             Label
     92               34:           2 FunctionCall 6(bar()
     93               37:    8(float) Load 36(d)
     94               40:    39(bool) FOrdLessThan 37 38
     95                               SelectionMerge 42 None
     96                               BranchConditional 40 41 45
     97               41:               Label
     98                                 ReturnValue 43
     99               45:               Label
    100                                 ReturnValue 46
    101               42:             Label
    102               48:    8(float) Undef
    103                               ReturnValue 48
    104                               FunctionEnd
    105     16(foo(vf4;):    8(float) Function None 14
    106          15(bar):     13(ptr) FunctionParameter
    107               17:             Label
    108               51:     26(ptr) AccessChain 15(bar) 50
    109               52:    8(float) Load 51
    110               54:     26(ptr) AccessChain 15(bar) 53
    111               55:    8(float) Load 54
    112               56:    8(float) FAdd 52 55
    113                               ReturnValue 56
    114                               FunctionEnd
    115