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