6 // Module Version 10000
7 // Generated by (magic number): 80001
8 // Id's are bound by 47
11 1: ExtInstImport "GLSL.std.450"
12 MemoryModel Logical GLSL450
13 EntryPoint Fragment 4 "main" 36
14 ExecutionMode 4 OriginLowerLeft
23 Name 36 "gl_FragColor"
24 Decorate 11(face1) RelaxedPrecision
25 Decorate 13(face2) RelaxedPrecision
26 Decorate 17(z) RelaxedPrecision
27 Decorate 21(low) RelaxedPrecision
28 Decorate 26(high) RelaxedPrecision
29 Decorate 36(gl_FragColor) RelaxedPrecision
33 7: TypeFunction 6(float)
34 10: TypePointer Private 6(float)
35 11(face1): 10(ptr) Variable Private
36 12: 6(float) Constant 1093664768
37 13(face2): 10(ptr) Variable Private
38 14: 6(float) Constant 3221225472
40 16: TypePointer Function 15(int)
41 18: 15(int) Constant 3
42 19: 15(int) Constant 2
43 20: TypePointer UniformConstant 15(int)
44 21(low): 20(ptr) Variable UniformConstant
45 24: 15(int) Constant 1
46 26(high): 20(ptr) Variable UniformConstant
48 34: TypeVector 6(float) 4
49 35: TypePointer Output 34(fvec4)
50 36(gl_FragColor): 35(ptr) Variable Output
51 4(main): 2 Function None 3
53 17(z): 16(ptr) Variable Function
57 22: 15(int) Load 21(low)
58 23: 15(int) IMul 19 22
59 25: 15(int) IAdd 23 24
60 27: 15(int) Load 26(high)
61 29: 28(bool) SLessThan 25 27
62 SelectionMerge 31 None
63 BranchConditional 29 30 31
65 32: 15(int) Load 17(z)
66 33: 15(int) IAdd 32 24
70 37: 6(float) Load 11(face1)
71 38: 15(int) Load 17(z)
72 39: 6(float) ConvertSToF 38
73 40: 34(fvec4) CompositeConstruct 39 39 39 39
74 41: 34(fvec4) VectorTimesScalar 40 37
75 42: 6(float) FunctionCall 8(foo()
76 43: 34(fvec4) CompositeConstruct 42 42 42 42
77 44: 34(fvec4) FAdd 41 43
78 Store 36(gl_FragColor) 44
81 8(foo(): 6(float) Function None 7
83 45: 6(float) Load 13(face2)