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