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