65017035b53912e1f6f7ebdd54d4c9dc82fd7def
[platform/upstream/glslang.git] / Test / baseResults / hlsl.inoutquals.frag.out
1 hlsl.inoutquals.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:8  Function Definition: MyFunc(f1;f1;f1; ( temp void)
6 0:8    Function Parameters: 
7 0:8      'x' ( in float)
8 0:8      'y' ( out float)
9 0:8      'z' ( inout float)
10 0:?     Sequence
11 0:9      move second child to first child ( temp float)
12 0:9        'y' ( out float)
13 0:9        'x' ( in float)
14 0:10      move second child to first child ( temp float)
15 0:10        'z' ( inout float)
16 0:10        'y' ( out float)
17 0:11      move second child to first child ( temp float)
18 0:11        'x' ( in float)
19 0:11        Constant:
20 0:11          -1.000000
21 0:15  Function Definition: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
22 0:15    Function Parameters: 
23 0:15      'inpos' ( in 4-component vector of float)
24 0:15      'sampleMask' ( out int)
25 0:?     Sequence
26 0:18      Sequence
27 0:18        move second child to first child ( temp float)
28 0:18          'x' ( temp float)
29 0:18          Constant:
30 0:18            7.000000
31 0:18        move second child to first child ( temp float)
32 0:18          'z' ( temp float)
33 0:18          Constant:
34 0:18            3.000000
35 0:19      Function Call: MyFunc(f1;f1;f1; ( temp void)
36 0:19        'x' ( temp float)
37 0:19        'y' ( temp float)
38 0:19        'z' ( temp float)
39 0:21      move second child to first child ( temp 4-component vector of float)
40 0:21        Color: direct index for structure ( temp 4-component vector of float)
41 0:21          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
42 0:21          Constant:
43 0:21            0 (const int)
44 0:?         Construct vec4 ( temp 4-component vector of float)
45 0:21          'x' ( temp float)
46 0:21          'y' ( temp float)
47 0:21          'z' ( temp float)
48 0:21          Constant:
49 0:21            1.000000
50 0:22      move second child to first child ( temp float)
51 0:22        Depth: direct index for structure ( temp float)
52 0:22          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
53 0:22          Constant:
54 0:22            1 (const int)
55 0:22        direct index ( temp float)
56 0:22          'inpos' ( in 4-component vector of float)
57 0:22          Constant:
58 0:22            3 (const int)
59 0:24      Branch: Return with expression
60 0:24        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
61 0:15  Function Definition: main( ( temp void)
62 0:15    Function Parameters: 
63 0:?     Sequence
64 0:15      move second child to first child ( temp 4-component vector of float)
65 0:?         'inpos' ( temp 4-component vector of float)
66 0:?         'inpos' ( noperspective in 4-component vector of float FragCoord)
67 0:15      Sequence
68 0:15        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
69 0:15          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
70 0:15          Function Call: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
71 0:?             'inpos' ( temp 4-component vector of float)
72 0:?             'sampleMask' ( temp int)
73 0:15        move second child to first child ( temp 4-component vector of float)
74 0:?           'Color' (layout( location=0) out 4-component vector of float)
75 0:15          Color: direct index for structure ( temp 4-component vector of float)
76 0:15            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
77 0:15            Constant:
78 0:15              0 (const int)
79 0:15        move second child to first child ( temp float)
80 0:?           'Depth' ( out float FragDepth)
81 0:15          Depth: direct index for structure ( temp float)
82 0:15            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
83 0:15            Constant:
84 0:15              1 (const int)
85 0:15      move second child to first child ( temp int)
86 0:?         'sampleMask' ( out int SampleMaskIn)
87 0:?         'sampleMask' ( temp int)
88 0:?   Linker Objects
89 0:?     'Color' (layout( location=0) out 4-component vector of float)
90 0:?     'Depth' ( out float FragDepth)
91 0:?     'inpos' ( noperspective in 4-component vector of float FragCoord)
92 0:?     'sampleMask' ( out int SampleMaskIn)
93
94
95 Linked fragment stage:
96
97
98 Shader version: 450
99 gl_FragCoord origin is upper left
100 0:? Sequence
101 0:8  Function Definition: MyFunc(f1;f1;f1; ( temp void)
102 0:8    Function Parameters: 
103 0:8      'x' ( in float)
104 0:8      'y' ( out float)
105 0:8      'z' ( inout float)
106 0:?     Sequence
107 0:9      move second child to first child ( temp float)
108 0:9        'y' ( out float)
109 0:9        'x' ( in float)
110 0:10      move second child to first child ( temp float)
111 0:10        'z' ( inout float)
112 0:10        'y' ( out float)
113 0:11      move second child to first child ( temp float)
114 0:11        'x' ( in float)
115 0:11        Constant:
116 0:11          -1.000000
117 0:15  Function Definition: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
118 0:15    Function Parameters: 
119 0:15      'inpos' ( in 4-component vector of float)
120 0:15      'sampleMask' ( out int)
121 0:?     Sequence
122 0:18      Sequence
123 0:18        move second child to first child ( temp float)
124 0:18          'x' ( temp float)
125 0:18          Constant:
126 0:18            7.000000
127 0:18        move second child to first child ( temp float)
128 0:18          'z' ( temp float)
129 0:18          Constant:
130 0:18            3.000000
131 0:19      Function Call: MyFunc(f1;f1;f1; ( temp void)
132 0:19        'x' ( temp float)
133 0:19        'y' ( temp float)
134 0:19        'z' ( temp float)
135 0:21      move second child to first child ( temp 4-component vector of float)
136 0:21        Color: direct index for structure ( temp 4-component vector of float)
137 0:21          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
138 0:21          Constant:
139 0:21            0 (const int)
140 0:?         Construct vec4 ( temp 4-component vector of float)
141 0:21          'x' ( temp float)
142 0:21          'y' ( temp float)
143 0:21          'z' ( temp float)
144 0:21          Constant:
145 0:21            1.000000
146 0:22      move second child to first child ( temp float)
147 0:22        Depth: direct index for structure ( temp float)
148 0:22          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
149 0:22          Constant:
150 0:22            1 (const int)
151 0:22        direct index ( temp float)
152 0:22          'inpos' ( in 4-component vector of float)
153 0:22          Constant:
154 0:22            3 (const int)
155 0:24      Branch: Return with expression
156 0:24        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
157 0:15  Function Definition: main( ( temp void)
158 0:15    Function Parameters: 
159 0:?     Sequence
160 0:15      move second child to first child ( temp 4-component vector of float)
161 0:?         'inpos' ( temp 4-component vector of float)
162 0:?         'inpos' ( noperspective in 4-component vector of float FragCoord)
163 0:15      Sequence
164 0:15        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
165 0:15          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
166 0:15          Function Call: @main(vf4;i1; ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
167 0:?             'inpos' ( temp 4-component vector of float)
168 0:?             'sampleMask' ( temp int)
169 0:15        move second child to first child ( temp 4-component vector of float)
170 0:?           'Color' (layout( location=0) out 4-component vector of float)
171 0:15          Color: direct index for structure ( temp 4-component vector of float)
172 0:15            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
173 0:15            Constant:
174 0:15              0 (const int)
175 0:15        move second child to first child ( temp float)
176 0:?           'Depth' ( out float FragDepth)
177 0:15          Depth: direct index for structure ( temp float)
178 0:15            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
179 0:15            Constant:
180 0:15              1 (const int)
181 0:15      move second child to first child ( temp int)
182 0:?         'sampleMask' ( out int SampleMaskIn)
183 0:?         'sampleMask' ( temp int)
184 0:?   Linker Objects
185 0:?     'Color' (layout( location=0) out 4-component vector of float)
186 0:?     'Depth' ( out float FragDepth)
187 0:?     'inpos' ( noperspective in 4-component vector of float FragCoord)
188 0:?     'sampleMask' ( out int SampleMaskIn)
189
190 // Module Version 10000
191 // Generated by (magic number): 80001
192 // Id's are bound by 80
193
194                               Capability Shader
195                               Capability SampleRateShading
196                1:             ExtInstImport  "GLSL.std.450"
197                               MemoryModel Logical GLSL450
198                               EntryPoint Fragment 4  "main" 60 70 74 78
199                               ExecutionMode 4 OriginUpperLeft
200                               Name 4  "main"
201                               Name 12  "MyFunc(f1;f1;f1;"
202                               Name 9  "x"
203                               Name 10  "y"
204                               Name 11  "z"
205                               Name 18  "PS_OUTPUT"
206                               MemberName 18(PS_OUTPUT) 0  "Color"
207                               MemberName 18(PS_OUTPUT) 1  "Depth"
208                               Name 22  "@main(vf4;i1;"
209                               Name 20  "inpos"
210                               Name 21  "sampleMask"
211                               Name 27  "x"
212                               Name 29  "z"
213                               Name 31  "y"
214                               Name 32  "param"
215                               Name 34  "param"
216                               Name 35  "param"
217                               Name 41  "psout"
218                               Name 58  "inpos"
219                               Name 60  "inpos"
220                               Name 62  "flattenTemp"
221                               Name 63  "sampleMask"
222                               Name 64  "param"
223                               Name 66  "param"
224                               Name 70  "Color"
225                               Name 74  "Depth"
226                               Name 78  "sampleMask"
227                               Decorate 60(inpos) NoPerspective
228                               Decorate 60(inpos) BuiltIn FragCoord
229                               Decorate 70(Color) Location 0
230                               Decorate 74(Depth) BuiltIn FragDepth
231                               Decorate 78(sampleMask) BuiltIn SampleMask
232                2:             TypeVoid
233                3:             TypeFunction 2
234                6:             TypeFloat 32
235                7:             TypePointer Function 6(float)
236                8:             TypeFunction 2 7(ptr) 7(ptr) 7(ptr)
237               14:             TypeVector 6(float) 4
238               15:             TypePointer Function 14(fvec4)
239               16:             TypeInt 32 1
240               17:             TypePointer Function 16(int)
241    18(PS_OUTPUT):             TypeStruct 14(fvec4) 6(float)
242               19:             TypeFunction 18(PS_OUTPUT) 15(ptr) 17(ptr)
243               26:    6(float) Constant 3212836864
244               28:    6(float) Constant 1088421888
245               30:    6(float) Constant 1077936128
246               40:             TypePointer Function 18(PS_OUTPUT)
247               42:     16(int) Constant 0
248               46:    6(float) Constant 1065353216
249               49:     16(int) Constant 1
250               50:             TypeInt 32 0
251               51:     50(int) Constant 3
252               59:             TypePointer Input 14(fvec4)
253        60(inpos):     59(ptr) Variable Input
254               69:             TypePointer Output 14(fvec4)
255        70(Color):     69(ptr) Variable Output
256               73:             TypePointer Output 6(float)
257        74(Depth):     73(ptr) Variable Output
258               77:             TypePointer Output 16(int)
259   78(sampleMask):     77(ptr) Variable Output
260          4(main):           2 Function None 3
261                5:             Label
262        58(inpos):     15(ptr) Variable Function
263  62(flattenTemp):     40(ptr) Variable Function
264   63(sampleMask):     17(ptr) Variable Function
265        64(param):     15(ptr) Variable Function
266        66(param):     17(ptr) Variable Function
267               61:   14(fvec4) Load 60(inpos)
268                               Store 58(inpos) 61
269               65:   14(fvec4) Load 58(inpos)
270                               Store 64(param) 65
271               67:18(PS_OUTPUT) FunctionCall 22(@main(vf4;i1;) 64(param) 66(param)
272               68:     16(int) Load 66(param)
273                               Store 63(sampleMask) 68
274                               Store 62(flattenTemp) 67
275               71:     15(ptr) AccessChain 62(flattenTemp) 42
276               72:   14(fvec4) Load 71
277                               Store 70(Color) 72
278               75:      7(ptr) AccessChain 62(flattenTemp) 49
279               76:    6(float) Load 75
280                               Store 74(Depth) 76
281               79:     16(int) Load 63(sampleMask)
282                               Store 78(sampleMask) 79
283                               Return
284                               FunctionEnd
285 12(MyFunc(f1;f1;f1;):           2 Function None 8
286             9(x):      7(ptr) FunctionParameter
287            10(y):      7(ptr) FunctionParameter
288            11(z):      7(ptr) FunctionParameter
289               13:             Label
290               24:    6(float) Load 9(x)
291                               Store 10(y) 24
292               25:    6(float) Load 10(y)
293                               Store 11(z) 25
294                               Store 9(x) 26
295                               Return
296                               FunctionEnd
297 22(@main(vf4;i1;):18(PS_OUTPUT) Function None 19
298        20(inpos):     15(ptr) FunctionParameter
299   21(sampleMask):     17(ptr) FunctionParameter
300               23:             Label
301            27(x):      7(ptr) Variable Function
302            29(z):      7(ptr) Variable Function
303            31(y):      7(ptr) Variable Function
304        32(param):      7(ptr) Variable Function
305        34(param):      7(ptr) Variable Function
306        35(param):      7(ptr) Variable Function
307        41(psout):     40(ptr) Variable Function
308                               Store 27(x) 28
309                               Store 29(z) 30
310               33:    6(float) Load 27(x)
311                               Store 32(param) 33
312               36:    6(float) Load 29(z)
313                               Store 35(param) 36
314               37:           2 FunctionCall 12(MyFunc(f1;f1;f1;) 32(param) 34(param) 35(param)
315               38:    6(float) Load 34(param)
316                               Store 31(y) 38
317               39:    6(float) Load 35(param)
318                               Store 29(z) 39
319               43:    6(float) Load 27(x)
320               44:    6(float) Load 31(y)
321               45:    6(float) Load 29(z)
322               47:   14(fvec4) CompositeConstruct 43 44 45 46
323               48:     15(ptr) AccessChain 41(psout) 42
324                               Store 48 47
325               52:      7(ptr) AccessChain 20(inpos) 51
326               53:    6(float) Load 52
327               54:      7(ptr) AccessChain 41(psout) 49
328                               Store 54 53
329               55:18(PS_OUTPUT) Load 41(psout)
330                               ReturnValue 55
331                               FunctionEnd