blob: 26da15ce33316cfaa6ceca17109ad05f48fe1fe0 [file] [log] [blame]
John Kessenichcc16fa02015-12-10 18:01:54 -07001spv.discard-dce.frag
2
3Linked fragment stage:
4
5
6// Module Version 10000
7// Generated by (magic number): 80001
8// Id's are bound by 84
9
10 Capability Shader
11 1: ExtInstImport "GLSL.std.450"
12 MemoryModel Logical GLSL450
13 EntryPoint Fragment 4 "main" 21
14 ExecutionMode 4 OriginLowerLeft
15 Source GLSL 110
16 Name 4 "main"
17 Name 9 "white"
18 Name 12 "black"
19 Name 15 "color"
20 Name 18 "x"
21 Name 21 "tex_coord"
22 Name 30 "y"
23 Name 36 "radius"
24 Name 59 "gl_FragColor"
25 2: TypeVoid
26 3: TypeFunction 2
27 6: TypeFloat 32
28 7: TypeVector 6(float) 4
29 8: TypePointer Function 7(fvec4)
30 10: 6(float) Constant 1065353216
31 11: 7(fvec4) ConstantComposite 10 10 10 10
32 13: 6(float) Constant 1045220557
33 14: 7(fvec4) ConstantComposite 13 13 13 13
34 17: TypePointer Function 6(float)
35 19: TypeVector 6(float) 2
36 20: TypePointer Input 19(fvec2)
37 21(tex_coord): 20(ptr) Variable Input
38 22: TypeInt 32 0
39 23: 22(int) Constant 0
40 24: TypePointer Input 6(float)
41 27: 6(float) Constant 1073741824
42 31: 22(int) Constant 1
43 46: TypeBool
44 51: 6(float) Constant 1066192077
45 58: TypePointer Output 7(fvec4)
4659(gl_FragColor): 58(ptr) Variable Output
47 62: 6(float) Constant 1067030938
48 71: 6(float) Constant 1061158912
49 76: 6(float) Constant 1098907648
50 4(main): 2 Function None 3
51 5: Label
52 9(white): 8(ptr) Variable Function
53 12(black): 8(ptr) Variable Function
54 15(color): 8(ptr) Variable Function
55 18(x): 17(ptr) Variable Function
56 30(y): 17(ptr) Variable Function
57 36(radius): 17(ptr) Variable Function
58 Store 9(white) 11
59 Store 12(black) 14
60 16: 7(fvec4) Load 9(white)
61 Store 15(color) 16
62 25: 24(ptr) AccessChain 21(tex_coord) 23
63 26: 6(float) Load 25
64 28: 6(float) FMul 26 27
65 29: 6(float) FSub 28 10
66 Store 18(x) 29
67 32: 24(ptr) AccessChain 21(tex_coord) 31
68 33: 6(float) Load 32
69 34: 6(float) FMul 33 27
70 35: 6(float) FSub 34 10
71 Store 30(y) 35
72 37: 6(float) Load 18(x)
73 38: 6(float) Load 18(x)
74 39: 6(float) FMul 37 38
75 40: 6(float) Load 30(y)
76 41: 6(float) Load 30(y)
77 42: 6(float) FMul 40 41
78 43: 6(float) FAdd 39 42
79 44: 6(float) ExtInst 1(GLSL.std.450) 31(Sqrt) 43
80 Store 36(radius) 44
81 45: 6(float) Load 36(radius)
82 47: 46(bool) FOrdGreaterThan 45 10
83 SelectionMerge 49 None
84 BranchConditional 47 48 49
85 48: Label
86 50: 6(float) Load 36(radius)
87 52: 46(bool) FOrdGreaterThan 50 51
88 SelectionMerge 54 None
89 BranchConditional 52 53 54
90 53: Label
91 55: 7(fvec4) Load 15(color)
92 56: 7(fvec4) CompositeConstruct 10 10 10 10
93 57: 7(fvec4) FAdd 55 56
94 Store 15(color) 57
95 Branch 54
96 54: Label
97 60: 7(fvec4) Load 15(color)
98 Store 59(gl_FragColor) 60
99 61: 6(float) Load 36(radius)
100 63: 46(bool) FOrdGreaterThan 61 62
101 SelectionMerge 65 None
102 BranchConditional 63 64 65
103 64: Label
104 66: 7(fvec4) Load 15(color)
105 67: 7(fvec4) CompositeConstruct 10 10 10 10
106 68: 7(fvec4) FAdd 66 67
107 Store 15(color) 68
108 Branch 65
109 65: Label
110 Kill
111 49: Label
112 70: 6(float) Load 36(radius)
113 72: 46(bool) FOrdGreaterThanEqual 70 71
114 SelectionMerge 74 None
115 BranchConditional 72 73 74
116 73: Label
117 75: 6(float) Load 36(radius)
118 77: 6(float) ExtInst 1(GLSL.std.450) 26(Pow) 75 76
119 78: 6(float) FDiv 77 27
120 79: 6(float) ExtInst 1(GLSL.std.450) 4(FAbs) 78
121 80: 7(fvec4) Load 15(color)
122 81: 7(fvec4) CompositeConstruct 79 79 79 79
123 82: 7(fvec4) FSub 80 81
124 Store 15(color) 82
125 Branch 74
126 74: Label
127 83: 7(fvec4) Load 15(color)
128 Store 59(gl_FragColor) 83
129 Return
130 FunctionEnd