blob: 7189da836304489a5f93f375867a16a3063629cf [file] [log] [blame]
John Kessenichcc16fa02015-12-10 18:01:54 -07001spv.forwardFun.frag
John Kessenich2b5ea9f2018-01-31 18:35:56 -07002// Module Version 10000
John Kessenich71b5da62018-02-06 08:06:36 -07003// Generated by (magic number): 80004
John Kessenich6c292d32016-02-15 20:58:50 -07004// Id's are bound by 60
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" 20 30 36 59
10 ExecutionMode 4 OriginUpperLeft
John Kessenichf6eae2a2016-01-22 17:47:22 -070011 Source GLSL 140
John Kessenichcc16fa02015-12-10 18:01:54 -070012 Name 4 "main"
13 Name 6 "bar("
14 Name 10 "unreachableReturn("
15 Name 16 "foo(vf4;"
16 Name 15 "bar"
17 Name 18 "color"
18 Name 20 "BaseColor"
19 Name 21 "param"
20 Name 27 "f"
21 Name 30 "gl_FragColor"
22 Name 36 "d"
John Kessenich6c292d32016-02-15 20:58:50 -070023 Name 59 "bigColor"
John Kessenich54571c22016-08-03 16:41:53 -060024 Decorate 10(unreachableReturn() RelaxedPrecision
25 Decorate 16(foo(vf4;) RelaxedPrecision
26 Decorate 15(bar) RelaxedPrecision
27 Decorate 18(color) RelaxedPrecision
28 Decorate 20(BaseColor) RelaxedPrecision
29 Decorate 22 RelaxedPrecision
30 Decorate 23 RelaxedPrecision
31 Decorate 24 RelaxedPrecision
32 Decorate 27(f) RelaxedPrecision
33 Decorate 28 RelaxedPrecision
34 Decorate 30(gl_FragColor) RelaxedPrecision
John Kessenich2c6f48b2017-05-20 13:23:25 -060035 Decorate 30(gl_FragColor) Location 0
John Kessenich54571c22016-08-03 16:41:53 -060036 Decorate 31 RelaxedPrecision
37 Decorate 32 RelaxedPrecision
38 Decorate 33 RelaxedPrecision
39 Decorate 36(d) RelaxedPrecision
40 Decorate 37 RelaxedPrecision
41 Decorate 52 RelaxedPrecision
42 Decorate 55 RelaxedPrecision
43 Decorate 56 RelaxedPrecision
44 Decorate 59(bigColor) RelaxedPrecision
John Kessenichcc16fa02015-12-10 18:01:54 -070045 2: TypeVoid
46 3: TypeFunction 2
47 8: TypeFloat 32
48 9: TypeFunction 8(float)
49 12: TypeVector 8(float) 4
50 13: TypePointer Function 12(fvec4)
51 14: TypeFunction 8(float) 13(ptr)
52 19: TypePointer Input 12(fvec4)
53 20(BaseColor): 19(ptr) Variable Input
54 26: TypePointer Function 8(float)
55 29: TypePointer Output 12(fvec4)
5630(gl_FragColor): 29(ptr) Variable Output
John Kessenich6c292d32016-02-15 20:58:50 -070057 35: TypePointer Input 8(float)
58 36(d): 35(ptr) Variable Input
John Kessenichcc16fa02015-12-10 18:01:54 -070059 38: 8(float) Constant 1082549862
60 39: TypeBool
61 43: 8(float) Constant 1067030938
62 46: 8(float) Constant 1083179008
63 49: TypeInt 32 0
64 50: 49(int) Constant 0
65 53: 49(int) Constant 1
John Kessenich6c292d32016-02-15 20:58:50 -070066 59(bigColor): 19(ptr) Variable Input
John Kessenichcc16fa02015-12-10 18:01:54 -070067 4(main): 2 Function None 3
68 5: Label
69 18(color): 13(ptr) Variable Function
70 21(param): 13(ptr) Variable Function
71 27(f): 26(ptr) Variable Function
72 22: 12(fvec4) Load 20(BaseColor)
73 Store 21(param) 22
74 23: 8(float) FunctionCall 16(foo(vf4;) 21(param)
75 24: 12(fvec4) CompositeConstruct 23 23 23 23
76 Store 18(color) 24
77 25: 2 FunctionCall 6(bar()
78 28: 8(float) FunctionCall 10(unreachableReturn()
79 Store 27(f) 28
80 31: 12(fvec4) Load 18(color)
81 32: 8(float) Load 27(f)
82 33: 12(fvec4) VectorTimesScalar 31 32
83 Store 30(gl_FragColor) 33
84 Return
85 FunctionEnd
86 6(bar(): 2 Function None 3
87 7: Label
88 Return
89 FunctionEnd
9010(unreachableReturn(): 8(float) Function None 9
91 11: Label
92 34: 2 FunctionCall 6(bar()
93 37: 8(float) Load 36(d)
94 40: 39(bool) FOrdLessThan 37 38
95 SelectionMerge 42 None
96 BranchConditional 40 41 45
97 41: Label
98 ReturnValue 43
99 45: Label
100 ReturnValue 46
101 42: Label
102 48: 8(float) Undef
103 ReturnValue 48
104 FunctionEnd
105 16(foo(vf4;): 8(float) Function None 14
106 15(bar): 13(ptr) FunctionParameter
107 17: Label
108 51: 26(ptr) AccessChain 15(bar) 50
109 52: 8(float) Load 51
110 54: 26(ptr) AccessChain 15(bar) 53
111 55: 8(float) Load 54
112 56: 8(float) FAdd 52 55
113 ReturnValue 56
114 FunctionEnd