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