blob: fbaee8784ff4999815d643a3251575ae61fc024c [file] [log] [blame]
John Kessenichcc16fa02015-12-10 18:01:54 -07001spv.voidFunction.frag
John Kessenich2b5ea9f2018-01-31 18:35:56 -07002// Module Version 10000
John Kessenichd6c97552018-06-04 15:33:31 -06003// Generated by (magic number): 80007
John Kessenich6c292d32016-02-15 20:58:50 -07004// Id's are bound by 43
John Kessenichcc16fa02015-12-10 18:01:54 -07005
6 Capability Shader
7 1: ExtInstImport "GLSL.std.450"
8 MemoryModel Logical GLSL450
John Kessenich6c292d32016-02-15 20:58:50 -07009 EntryPoint Fragment 4 "main" 24 37 40 42
10 ExecutionMode 4 OriginUpperLeft
11 Source GLSL 400
John Kessenichcc16fa02015-12-10 18:01:54 -070012 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"
John Kessenich6c292d32016-02-15 20:58:50 -070019 Name 40 "BaseColor"
20 Name 42 "d"
John Kessenich2c6f48b2017-05-20 13:23:25 -060021 Decorate 37(gl_FragColor) Location 0
John Kessenichcc16fa02015-12-10 18:01:54 -070022 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)
John Kessenich6c292d32016-02-15 20:58:50 -070031 23: TypePointer Input 20(fvec4)
32 24(bigColor): 23(ptr) Variable Input
John Kessenichcc16fa02015-12-10 18:01:54 -070033 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
John Kessenich6c292d32016-02-15 20:58:50 -070038 40(BaseColor): 23(ptr) Variable Input
39 41: TypePointer Input 10(float)
40 42(d): 41(ptr) Variable Input
John Kessenichcc16fa02015-12-10 18:01:54 -070041 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