1 hlsl.array.implicit-size.frag
3 gl_FragCoord origin is upper left
6 0:3 move second child to first child ( temp 5-element array of float)
7 0:3 'g_array' ( global 5-element array of float)
15 0:6 move second child to first child ( temp 7-element array of float)
16 0:6 'g_array_unused' ( global 7-element array of float)
26 0:12 move second child to first child ( temp 2-element array of structure{ temp int i, temp float f})
27 0:12 'g_mystruct' ( global 2-element array of structure{ temp int i, temp float f})
33 0:26 Function Definition: main(struct-PS_OUTPUT-vf41; ( temp void)
34 0:26 Function Parameters:
35 0:26 'ps_output' ( out structure{ temp 4-component vector of float color})
38 0:28 move second child to first child ( temp 3-element array of float)
39 0:28 'l_array' ( temp 3-element array of float)
44 0:31 move second child to first child ( temp 4-component vector of float)
45 0:31 color: direct index for structure ( temp 4-component vector of float)
46 0:31 'ps_output' ( out structure{ temp 4-component vector of float color})
49 0:31 Construct vec4 ( temp 4-component vector of float)
50 0:31 add ( temp float)
51 0:31 add ( temp float)
52 0:31 add ( temp float)
53 0:31 add ( temp float)
54 0:31 direct index ( temp float)
55 0:31 'g_array' ( global 5-element array of float)
58 0:31 direct index ( temp float)
59 0:31 'g_array' ( global 5-element array of float)
62 0:31 direct index ( temp float)
63 0:31 'l_array' ( temp 3-element array of float)
66 0:31 f: direct index for structure ( temp float)
67 0:31 direct index ( temp structure{ temp int i, temp float f})
68 0:31 'g_mystruct' ( global 2-element array of structure{ temp int i, temp float f})
73 0:31 indirect index ( temp float)
74 0:31 'g_array' ( global 5-element array of float)
75 0:31 'idx' ( temp int)
77 0:? 'g_array' ( global 5-element array of float)
78 0:? 'g_array_unused' ( global 7-element array of float)
79 0:? 'g_mystruct' ( global 2-element array of structure{ temp int i, temp float f})
82 Linked fragment stage:
84 WARNING: Linking fragment stage: Entry point not found
87 gl_FragCoord origin is upper left
90 0:3 move second child to first child ( temp 5-element array of float)
91 0:3 'g_array' ( global 5-element array of float)
99 0:6 move second child to first child ( temp 7-element array of float)
100 0:6 'g_array_unused' ( global 7-element array of float)
110 0:12 move second child to first child ( temp 2-element array of structure{ temp int i, temp float f})
111 0:12 'g_mystruct' ( global 2-element array of structure{ temp int i, temp float f})
117 0:26 Function Definition: main(struct-PS_OUTPUT-vf41; ( temp void)
118 0:26 Function Parameters:
119 0:26 'ps_output' ( out structure{ temp 4-component vector of float color})
122 0:28 move second child to first child ( temp 3-element array of float)
123 0:28 'l_array' ( temp 3-element array of float)
128 0:31 move second child to first child ( temp 4-component vector of float)
129 0:31 color: direct index for structure ( temp 4-component vector of float)
130 0:31 'ps_output' ( out structure{ temp 4-component vector of float color})
133 0:31 Construct vec4 ( temp 4-component vector of float)
134 0:31 add ( temp float)
135 0:31 add ( temp float)
136 0:31 add ( temp float)
137 0:31 add ( temp float)
138 0:31 direct index ( temp float)
139 0:31 'g_array' ( global 5-element array of float)
142 0:31 direct index ( temp float)
143 0:31 'g_array' ( global 5-element array of float)
146 0:31 direct index ( temp float)
147 0:31 'l_array' ( temp 3-element array of float)
150 0:31 f: direct index for structure ( temp float)
151 0:31 direct index ( temp structure{ temp int i, temp float f})
152 0:31 'g_mystruct' ( global 2-element array of structure{ temp int i, temp float f})
157 0:31 indirect index ( temp float)
158 0:31 'g_array' ( global 5-element array of float)
159 0:31 'idx' ( temp int)
161 0:? 'g_array' ( global 5-element array of float)
162 0:? 'g_array_unused' ( global 7-element array of float)
163 0:? 'g_mystruct' ( global 2-element array of structure{ temp int i, temp float f})
165 // Module Version 10000
166 // Generated by (magic number): 8000b
167 // Id's are bound by 72
170 1: ExtInstImport "GLSL.std.450"
171 MemoryModel Logical GLSL450
172 EntryPoint Fragment 4 "PixelShaderFunction"
173 ExecutionMode 4 OriginUpperLeft
175 Name 4 "PixelShaderFunction"
177 MemberName 8(PS_OUTPUT) 0 "color"
178 Name 12 "main(struct-PS_OUTPUT-vf41;"
181 Name 28 "g_array_unused"
183 MemberName 33(mystruct) 0 "i"
184 MemberName 33(mystruct) 1 "f"
191 7: TypeVector 6(float) 4
192 8(PS_OUTPUT): TypeStruct 7(fvec4)
193 9: TypePointer Function 8(PS_OUTPUT)
194 10: TypeFunction 2 9(ptr)
196 15: 14(int) Constant 5
197 16: TypeArray 6(float) 15
198 17: TypePointer Private 16
199 18(g_array): 17(ptr) Variable Private
200 19: 6(float) Constant 1065353216
201 20: 6(float) Constant 1073741824
202 21: 6(float) Constant 1077936128
203 22: 6(float) Constant 1082130432
204 23: 6(float) Constant 1084227584
205 24: 16 ConstantComposite 19 20 21 22 23
206 25: 14(int) Constant 7
207 26: TypeArray 6(float) 25
208 27: TypePointer Private 26
209 28(g_array_unused): 27(ptr) Variable Private
210 29: 6(float) Constant 1086324736
211 30: 6(float) Constant 1088421888
212 31: 26 ConstantComposite 19 20 21 22 23 29 30
214 33(mystruct): TypeStruct 32(int) 6(float)
215 34: 14(int) Constant 2
216 35: TypeArray 33(mystruct) 34
217 36: TypePointer Private 35
218 37(g_mystruct): 36(ptr) Variable Private
219 38: 32(int) Constant 1
220 39:33(mystruct) ConstantComposite 38 20
221 40: 32(int) Constant 3
222 41:33(mystruct) ConstantComposite 40 22
223 42: 35 ConstantComposite 39 41
224 43: 14(int) Constant 3
225 44: TypeArray 6(float) 43
226 45: TypePointer Function 44
227 47: 44 ConstantComposite 19 20 21
228 48: 32(int) Constant 0
229 49: TypePointer Private 6(float)
230 52: 32(int) Constant 4
231 56: TypePointer Function 6(float)
232 63: TypePointer Function 32(int)
233 70: TypePointer Function 7(fvec4)
234 4(PixelShaderFunction): 2 Function None 3
237 Store 28(g_array_unused) 31
238 Store 37(g_mystruct) 42
241 12(main(struct-PS_OUTPUT-vf41;): 2 Function None 10
242 11(ps_output): 9(ptr) FunctionParameter
244 46(l_array): 45(ptr) Variable Function
245 64(idx): 63(ptr) Variable Function
247 50: 49(ptr) AccessChain 18(g_array) 48
249 53: 49(ptr) AccessChain 18(g_array) 52
251 55: 6(float) FAdd 51 54
252 57: 56(ptr) AccessChain 46(l_array) 38
254 59: 6(float) FAdd 55 58
255 60: 49(ptr) AccessChain 37(g_mystruct) 48 38
257 62: 6(float) FAdd 59 61
258 65: 32(int) Load 64(idx)
259 66: 49(ptr) AccessChain 18(g_array) 65
261 68: 6(float) FAdd 62 67
262 69: 7(fvec4) CompositeConstruct 68 68 68 68
263 71: 70(ptr) AccessChain 11(ps_output) 48