1spv.voidFunction.frag
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 43
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 24 37 40 42
10                              ExecutionMode 4 OriginUpperLeft
11                              Source GLSL 400
12                              Name 4  "main"
13                              Name 6  "foo("
14                              Name 8  "foo2("
15                              Name 12  "bar"
16                              Name 22  "outColor"
17                              Name 24  "bigColor"
18                              Name 37  "gl_FragColor"
19                              Name 40  "BaseColor"
20                              Name 42  "d"
21                              Decorate 37(gl_FragColor) Location 0
22               2:             TypeVoid
23               3:             TypeFunction 2
24              10:             TypeFloat 32
25              11:             TypePointer Private 10(float)
26         12(bar):     11(ptr) Variable Private
27              13:   10(float) Constant 1073741824
28              15:   10(float) Constant 1065353216
29              20:             TypeVector 10(float) 4
30              21:             TypePointer Function 20(fvec4)
31              23:             TypePointer Input 20(fvec4)
32    24(bigColor):     23(ptr) Variable Input
33              29:             TypeInt 32 0
34              30:     29(int) Constant 0
35              31:             TypePointer Function 10(float)
36              36:             TypePointer Output 20(fvec4)
3737(gl_FragColor):     36(ptr) Variable Output
38   40(BaseColor):     23(ptr) Variable Input
39              41:             TypePointer Input 10(float)
40           42(d):     41(ptr) Variable Input
41         4(main):           2 Function None 3
42               5:             Label
43    22(outColor):     21(ptr) Variable Function
44                              Store 12(bar) 13
45              25:   20(fvec4) Load 24(bigColor)
46                              Store 22(outColor) 25
47              26:           2 FunctionCall 6(foo()
48              27:           2 FunctionCall 8(foo2()
49              28:   10(float) Load 12(bar)
50              32:     31(ptr) AccessChain 22(outColor) 30
51              33:   10(float) Load 32
52              34:   10(float) FAdd 33 28
53              35:     31(ptr) AccessChain 22(outColor) 30
54                              Store 35 34
55              38:   20(fvec4) Load 22(outColor)
56                              Store 37(gl_FragColor) 38
57                              Return
58                              FunctionEnd
59         6(foo():           2 Function None 3
60               7:             Label
61              14:   10(float) Load 12(bar)
62              16:   10(float) FAdd 14 15
63                              Store 12(bar) 16
64                              Return
65                              FunctionEnd
66        8(foo2():           2 Function None 3
67               9:             Label
68              18:   10(float) Load 12(bar)
69              19:   10(float) FAdd 18 15
70                              Store 12(bar) 19
71                              Return
72                              FunctionEnd
73