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