1spv.structDeref.frag
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 123
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 61 99
10                              ExecutionMode 4 OriginUpperLeft
11                              Source GLSL 140
12                              Name 4  "main"
13                              Name 8  "s0"
14                              MemberName 8(s0) 0  "i"
15                              Name 9  "s1"
16                              MemberName 9(s1) 0  "i"
17                              MemberName 9(s1) 1  "f"
18                              MemberName 9(s1) 2  "s0_1"
19                              Name 10  "s2"
20                              MemberName 10(s2) 0  "i"
21                              MemberName 10(s2) 1  "f"
22                              MemberName 10(s2) 2  "s1_1"
23                              Name 14  "s3"
24                              MemberName 14(s3) 0  "s2_1"
25                              MemberName 14(s3) 1  "i"
26                              MemberName 14(s3) 2  "f"
27                              MemberName 14(s3) 3  "s1_1"
28                              Name 16  "foo3"
29                              Name 27  "locals2"
30                              Name 40  "fArray"
31                              Name 46  "locals1Array"
32                              Name 49  "foo1"
33                              Name 53  "locals0"
34                              Name 54  "s00"
35                              MemberName 54(s00) 0  "s0_0"
36                              Name 56  "locals00"
37                              Name 61  "coord"
38                              Name 71  "foo0"
39                              Name 86  "foo00"
40                              Name 99  "gl_FragColor"
41                              Name 116  "samp2D"
42                              Name 122  "foo2"
43                              Decorate 99(gl_FragColor) Location 0
44                              Decorate 116(samp2D) DescriptorSet 0
45               2:             TypeVoid
46               3:             TypeFunction 2
47               6:             TypeInt 32 1
48               7:             TypeFloat 32
49           8(s0):             TypeStruct 6(int)
50           9(s1):             TypeStruct 6(int) 7(float) 8(s0)
51          10(s2):             TypeStruct 6(int) 7(float) 9(s1)
52              11:             TypeInt 32 0
53              12:     11(int) Constant 12
54              13:             TypeArray 10(s2) 12
55          14(s3):             TypeStruct 13 6(int) 7(float) 9(s1)
56              15:             TypePointer Private 14(s3)
57        16(foo3):     15(ptr) Variable Private
58              17:      6(int) Constant 0
59              18:      6(int) Constant 9
60              19:             TypePointer Private 6(int)
61              22:             TypeBool
62              26:             TypePointer Function 10(s2)
63              28:      6(int) Constant 1
64              29:    7(float) Constant 1065353216
65              30:             TypePointer Function 7(float)
66              32:      6(int) Constant 2
67              33:       8(s0) ConstantComposite 17
68              34:       9(s1) ConstantComposite 17 29 33
69              35:             TypePointer Function 9(s1)
70              37:     11(int) Constant 6
71              38:             TypeArray 7(float) 37
72              39:             TypePointer Function 38
73              41:    7(float) Constant 0
74              42:          38 ConstantComposite 41 41 41 41 41 41
75              43:     11(int) Constant 10
76              44:             TypeArray 9(s1) 43
77              45:             TypePointer Function 44
78              47:      6(int) Constant 6
79              48:             TypePointer Private 9(s1)
80        49(foo1):     48(ptr) Variable Private
81              52:             TypePointer Function 8(s0)
82         54(s00):             TypeStruct 8(s0)
83              55:             TypePointer Function 54(s00)
84              57:     54(s00) ConstantComposite 33
85              59:             TypeVector 7(float) 2
86              60:             TypePointer Input 59(fvec2)
87       61(coord):     60(ptr) Variable Input
88              62:     11(int) Constant 0
89              63:             TypePointer Input 7(float)
90              67:     11(int) Constant 1
91              70:             TypePointer Private 8(s0)
92        71(foo0):     70(ptr) Variable Private
93              75:    7(float) Constant 1073741824
94              76:    7(float) Constant 1077936128
95              77:    7(float) Constant 1082130432
96              78:    7(float) Constant 1084227584
97              79:          38 ConstantComposite 41 29 75 76 77 78
98              85:             TypePointer Private 54(s00)
99       86(foo00):     85(ptr) Variable Private
100              88:             TypePointer Function 6(int)
101              91:      6(int) Constant 5
102              97:             TypeVector 7(float) 4
103              98:             TypePointer Output 97(fvec4)
10499(gl_FragColor):     98(ptr) Variable Output
105             106:      6(int) Constant 3
106             113:             TypeImage 7(float) 2D sampled format:Unknown
107             114:             TypeSampledImage 113
108             115:             TypePointer UniformConstant 114
109     116(samp2D):    115(ptr) Variable UniformConstant
110             121:             TypePointer Private 10(s2)
111       122(foo2):    121(ptr) Variable Private
112         4(main):           2 Function None 3
113               5:             Label
114     27(locals2):     26(ptr) Variable Function
115      40(fArray):     39(ptr) Variable Function
11646(locals1Array):     45(ptr) Variable Function
117     53(locals0):     52(ptr) Variable Function
118    56(locals00):     55(ptr) Variable Function
119              20:     19(ptr) AccessChain 16(foo3) 17 18 17
120              21:      6(int) Load 20
121              23:    22(bool) SGreaterThan 21 17
122                              SelectionMerge 25 None
123                              BranchConditional 23 24 58
124              24:               Label
125              31:     30(ptr)   AccessChain 27(locals2) 28
126                                Store 31 29
127              36:     35(ptr)   AccessChain 27(locals2) 32
128                                Store 36 34
129                                Store 40(fArray) 42
130              50:       9(s1)   Load 49(foo1)
131              51:     35(ptr)   AccessChain 46(locals1Array) 47
132                                Store 51 50
133                                Store 53(locals0) 33
134                                Store 56(locals00) 57
135                                Branch 25
136              58:               Label
137              64:     63(ptr)   AccessChain 61(coord) 62
138              65:    7(float)   Load 64
139              66:     30(ptr)   AccessChain 27(locals2) 28
140                                Store 66 65
141              68:     63(ptr)   AccessChain 61(coord) 67
142              69:    7(float)   Load 68
143              72:       8(s0)   Load 71(foo0)
144              73:       9(s1)   CompositeConstruct 28 69 72
145              74:     35(ptr)   AccessChain 27(locals2) 32
146                                Store 74 73
147                                Store 40(fArray) 79
148              80:     35(ptr)   AccessChain 27(locals2) 32
149              81:       9(s1)   Load 80
150              82:     35(ptr)   AccessChain 46(locals1Array) 47
151                                Store 82 81
152              83:     70(ptr)   AccessChain 49(foo1) 32
153              84:       8(s0)   Load 83
154                                Store 53(locals0) 84
155              87:     54(s00)   Load 86(foo00)
156                                Store 56(locals00) 87
157                                Branch 25
158              25:             Label
159              89:     88(ptr) AccessChain 53(locals0) 17
160              90:      6(int) Load 89
161              92:    22(bool) SGreaterThan 90 91
162                              SelectionMerge 94 None
163                              BranchConditional 92 93 94
164              93:               Label
165              95:     52(ptr)   AccessChain 56(locals00) 17
166              96:       8(s0)   Load 95
167                                Store 53(locals0) 96
168                                Branch 94
169              94:             Label
170             100:     88(ptr) AccessChain 53(locals0) 17
171             101:      6(int) Load 100
172             102:    7(float) ConvertSToF 101
173             103:     30(ptr) AccessChain 46(locals1Array) 47 28
174             104:    7(float) Load 103
175             105:    7(float) FAdd 102 104
176             107:     30(ptr) AccessChain 40(fArray) 106
177             108:    7(float) Load 107
178             109:    7(float) FAdd 105 108
179             110:     30(ptr) AccessChain 27(locals2) 32 28
180             111:    7(float) Load 110
181             112:    7(float) FAdd 109 111
182             117:         114 Load 116(samp2D)
183             118:   59(fvec2) Load 61(coord)
184             119:   97(fvec4) ImageSampleImplicitLod 117 118
185             120:   97(fvec4) VectorTimesScalar 119 112
186                              Store 99(gl_FragColor) 120
187                              Return
188                              FunctionEnd
189