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