58fa077735b9a828ed2fe1131282b87837b0e851
[platform/upstream/glslang.git] / Test / baseResults / hlsl.array.frag.out
1 hlsl.array.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:8  Function Definition: @PixelShaderFunction(i1;vf4[3]; ( temp 4-component vector of float)
6 0:8    Function Parameters: 
7 0:8      'i' ( in int)
8 0:8      'input' ( in 3-element array of 4-component vector of float)
9 0:?     Sequence
10 0:10      Branch: Return with expression
11 0:10        add ( temp 4-component vector of float)
12 0:10          add ( temp 4-component vector of float)
13 0:10            add ( temp 4-component vector of float)
14 0:10              add ( temp 4-component vector of float)
15 0:10                add ( temp 4-component vector of float)
16 0:10                  add ( temp 4-component vector of float)
17 0:10                    direct index ( temp 4-component vector of float)
18 0:10                      a: direct index for structure ( uniform 4-element array of 4-component vector of float)
19 0:10                        'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s})
20 0:10                        Constant:
21 0:10                          0 (const uint)
22 0:10                      Constant:
23 0:10                        1 (const int)
24 0:10                    indirect index ( temp 4-component vector of float)
25 0:10                      a: direct index for structure ( uniform 4-element array of 4-component vector of float)
26 0:10                        'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s})
27 0:10                        Constant:
28 0:10                          0 (const uint)
29 0:10                      'i' ( in int)
30 0:10                  direct index ( temp 4-component vector of float)
31 0:10                    'input' ( in 3-element array of 4-component vector of float)
32 0:10                    Constant:
33 0:10                      2 (const int)
34 0:10                indirect index ( temp 4-component vector of float)
35 0:10                  'input' ( in 3-element array of 4-component vector of float)
36 0:10                  'i' ( in int)
37 0:10              direct index ( temp 4-component vector of float)
38 0:10                'b' ( temp 10-element array of 4-component vector of float)
39 0:10                Constant:
40 0:10                  5 (const int)
41 0:10            indirect index ( temp 4-component vector of float)
42 0:10              'b' ( temp 10-element array of 4-component vector of float)
43 0:10              'i' ( in int)
44 0:10          indirect index ( temp 4-component vector of float)
45 0:10            m: direct index for structure ( temp 7-element array of 4-component vector of float)
46 0:10              indirect index ( temp structure{ temp 7-element array of 4-component vector of float m})
47 0:10                s: direct index for structure ( uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m})
48 0:10                  'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s})
49 0:10                  Constant:
50 0:10                    1 (const uint)
51 0:10                'i' ( in int)
52 0:10              Constant:
53 0:10                0 (const int)
54 0:10            'i' ( in int)
55 0:8  Function Definition: PixelShaderFunction( ( temp void)
56 0:8    Function Parameters: 
57 0:?     Sequence
58 0:8      move second child to first child ( temp int)
59 0:?         'i' ( temp int)
60 0:?         'i' (layout( location=0) in int)
61 0:8      move second child to first child ( temp 3-element array of 4-component vector of float)
62 0:?         'input' ( temp 3-element array of 4-component vector of float)
63 0:?         'input' (layout( location=1) in 3-element array of 4-component vector of float)
64 0:8      move second child to first child ( temp 4-component vector of float)
65 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
66 0:8        Function Call: @PixelShaderFunction(i1;vf4[3]; ( temp 4-component vector of float)
67 0:?           'i' ( temp int)
68 0:?           'input' ( temp 3-element array of 4-component vector of float)
69 0:?   Linker Objects
70 0:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s})
71 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
72 0:?     'i' (layout( location=0) in int)
73 0:?     'input' (layout( location=1) in 3-element array of 4-component vector of float)
74
75
76 Linked fragment stage:
77
78
79 Shader version: 450
80 gl_FragCoord origin is upper left
81 0:? Sequence
82 0:8  Function Definition: @PixelShaderFunction(i1;vf4[3]; ( temp 4-component vector of float)
83 0:8    Function Parameters: 
84 0:8      'i' ( in int)
85 0:8      'input' ( in 3-element array of 4-component vector of float)
86 0:?     Sequence
87 0:10      Branch: Return with expression
88 0:10        add ( temp 4-component vector of float)
89 0:10          add ( temp 4-component vector of float)
90 0:10            add ( temp 4-component vector of float)
91 0:10              add ( temp 4-component vector of float)
92 0:10                add ( temp 4-component vector of float)
93 0:10                  add ( temp 4-component vector of float)
94 0:10                    direct index ( temp 4-component vector of float)
95 0:10                      a: direct index for structure ( uniform 4-element array of 4-component vector of float)
96 0:10                        'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s})
97 0:10                        Constant:
98 0:10                          0 (const uint)
99 0:10                      Constant:
100 0:10                        1 (const int)
101 0:10                    indirect index ( temp 4-component vector of float)
102 0:10                      a: direct index for structure ( uniform 4-element array of 4-component vector of float)
103 0:10                        'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s})
104 0:10                        Constant:
105 0:10                          0 (const uint)
106 0:10                      'i' ( in int)
107 0:10                  direct index ( temp 4-component vector of float)
108 0:10                    'input' ( in 3-element array of 4-component vector of float)
109 0:10                    Constant:
110 0:10                      2 (const int)
111 0:10                indirect index ( temp 4-component vector of float)
112 0:10                  'input' ( in 3-element array of 4-component vector of float)
113 0:10                  'i' ( in int)
114 0:10              direct index ( temp 4-component vector of float)
115 0:10                'b' ( temp 10-element array of 4-component vector of float)
116 0:10                Constant:
117 0:10                  5 (const int)
118 0:10            indirect index ( temp 4-component vector of float)
119 0:10              'b' ( temp 10-element array of 4-component vector of float)
120 0:10              'i' ( in int)
121 0:10          indirect index ( temp 4-component vector of float)
122 0:10            m: direct index for structure ( temp 7-element array of 4-component vector of float)
123 0:10              indirect index ( temp structure{ temp 7-element array of 4-component vector of float m})
124 0:10                s: direct index for structure ( uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m})
125 0:10                  'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s})
126 0:10                  Constant:
127 0:10                    1 (const uint)
128 0:10                'i' ( in int)
129 0:10              Constant:
130 0:10                0 (const int)
131 0:10            'i' ( in int)
132 0:8  Function Definition: PixelShaderFunction( ( temp void)
133 0:8    Function Parameters: 
134 0:?     Sequence
135 0:8      move second child to first child ( temp int)
136 0:?         'i' ( temp int)
137 0:?         'i' (layout( location=0) in int)
138 0:8      move second child to first child ( temp 3-element array of 4-component vector of float)
139 0:?         'input' ( temp 3-element array of 4-component vector of float)
140 0:?         'input' (layout( location=1) in 3-element array of 4-component vector of float)
141 0:8      move second child to first child ( temp 4-component vector of float)
142 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
143 0:8        Function Call: @PixelShaderFunction(i1;vf4[3]; ( temp 4-component vector of float)
144 0:?           'i' ( temp int)
145 0:?           'input' ( temp 3-element array of 4-component vector of float)
146 0:?   Linker Objects
147 0:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a,  uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s})
148 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
149 0:?     'i' (layout( location=0) in int)
150 0:?     'input' (layout( location=1) in 3-element array of 4-component vector of float)
151
152 // Module Version 10000
153 // Generated by (magic number): 80001
154 // Id's are bound by 81
155
156                               Capability Shader
157                1:             ExtInstImport  "GLSL.std.450"
158                               MemoryModel Logical GLSL450
159                               EntryPoint Fragment 4  "PixelShaderFunction" 68 72 75
160                               ExecutionMode 4 OriginUpperLeft
161                               Name 4  "PixelShaderFunction"
162                               Name 17  "@PixelShaderFunction(i1;vf4[3];"
163                               Name 15  "i"
164                               Name 16  "input"
165                               Name 23  ""
166                               MemberName 23 0  "m"
167                               Name 26  "$Global"
168                               MemberName 26($Global) 0  "a"
169                               MemberName 26($Global) 1  "s"
170                               Name 28  ""
171                               Name 50  "b"
172                               Name 66  "i"
173                               Name 68  "i"
174                               Name 70  "input"
175                               Name 72  "input"
176                               Name 75  "@entryPointOutput"
177                               Name 76  "param"
178                               Name 78  "param"
179                               Decorate 20 ArrayStride 16
180                               Decorate 22 ArrayStride 16
181                               MemberDecorate 23 0 Offset 0
182                               Decorate 25 ArrayStride 112
183                               MemberDecorate 26($Global) 0 Offset 0
184                               MemberDecorate 26($Global) 1 Offset 64
185                               Decorate 26($Global) Block
186                               Decorate 28 DescriptorSet 0
187                               Decorate 68(i) Location 0
188                               Decorate 72(input) Location 1
189                               Decorate 75(@entryPointOutput) Location 0
190                2:             TypeVoid
191                3:             TypeFunction 2
192                6:             TypeInt 32 1
193                7:             TypePointer Function 6(int)
194                8:             TypeFloat 32
195                9:             TypeVector 8(float) 4
196               10:             TypeInt 32 0
197               11:     10(int) Constant 3
198               12:             TypeArray 9(fvec4) 11
199               13:             TypePointer Function 12
200               14:             TypeFunction 9(fvec4) 7(ptr) 13(ptr)
201               19:     10(int) Constant 4
202               20:             TypeArray 9(fvec4) 19
203               21:     10(int) Constant 7
204               22:             TypeArray 9(fvec4) 21
205               23:             TypeStruct 22
206               24:     10(int) Constant 11
207               25:             TypeArray 23(struct) 24
208      26($Global):             TypeStruct 20 25
209               27:             TypePointer Uniform 26($Global)
210               28:     27(ptr) Variable Uniform
211               29:      6(int) Constant 0
212               30:      6(int) Constant 1
213               31:             TypePointer Uniform 9(fvec4)
214               38:      6(int) Constant 2
215               39:             TypePointer Function 9(fvec4)
216               47:     10(int) Constant 10
217               48:             TypeArray 9(fvec4) 47
218               49:             TypePointer Function 48
219               51:      6(int) Constant 5
220               67:             TypePointer Input 6(int)
221            68(i):     67(ptr) Variable Input
222               71:             TypePointer Input 12
223        72(input):     71(ptr) Variable Input
224               74:             TypePointer Output 9(fvec4)
225 75(@entryPointOutput):     74(ptr) Variable Output
226 4(PixelShaderFunction):           2 Function None 3
227                5:             Label
228            66(i):      7(ptr) Variable Function
229        70(input):     13(ptr) Variable Function
230        76(param):      7(ptr) Variable Function
231        78(param):     13(ptr) Variable Function
232               69:      6(int) Load 68(i)
233                               Store 66(i) 69
234               73:          12 Load 72(input)
235                               Store 70(input) 73
236               77:      6(int) Load 66(i)
237                               Store 76(param) 77
238               79:          12 Load 70(input)
239                               Store 78(param) 79
240               80:    9(fvec4) FunctionCall 17(@PixelShaderFunction(i1;vf4[3];) 76(param) 78(param)
241                               Store 75(@entryPointOutput) 80
242                               Return
243                               FunctionEnd
244 17(@PixelShaderFunction(i1;vf4[3];):    9(fvec4) Function None 14
245            15(i):      7(ptr) FunctionParameter
246        16(input):     13(ptr) FunctionParameter
247               18:             Label
248            50(b):     49(ptr) Variable Function
249               32:     31(ptr) AccessChain 28 29 30
250               33:    9(fvec4) Load 32
251               34:      6(int) Load 15(i)
252               35:     31(ptr) AccessChain 28 29 34
253               36:    9(fvec4) Load 35
254               37:    9(fvec4) FAdd 33 36
255               40:     39(ptr) AccessChain 16(input) 38
256               41:    9(fvec4) Load 40
257               42:    9(fvec4) FAdd 37 41
258               43:      6(int) Load 15(i)
259               44:     39(ptr) AccessChain 16(input) 43
260               45:    9(fvec4) Load 44
261               46:    9(fvec4) FAdd 42 45
262               52:     39(ptr) AccessChain 50(b) 51
263               53:    9(fvec4) Load 52
264               54:    9(fvec4) FAdd 46 53
265               55:      6(int) Load 15(i)
266               56:     39(ptr) AccessChain 50(b) 55
267               57:    9(fvec4) Load 56
268               58:    9(fvec4) FAdd 54 57
269               59:      6(int) Load 15(i)
270               60:      6(int) Load 15(i)
271               61:     31(ptr) AccessChain 28 30 59 29 60
272               62:    9(fvec4) Load 61
273               63:    9(fvec4) FAdd 58 62
274                               ReturnValue 63
275                               FunctionEnd