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