ae2f4c9611da642f4e8e69b0c37abd8ce8a46291
[platform/upstream/glslang.git] / Test / baseResults / hlsl.rw.swizzle.frag.out
1 hlsl.rw.swizzle.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:4  Function Definition: SomeValue( ( temp 3-component vector of float)
6 0:4    Function Parameters: 
7 0:?     Sequence
8 0:4      Branch: Return with expression
9 0:?         Constant:
10 0:?           1.000000
11 0:?           2.000000
12 0:?           3.000000
13 0:7  Function Definition: @main( ( temp 4-component vector of float)
14 0:7    Function Parameters: 
15 0:?     Sequence
16 0:8      Sequence
17 0:8        move second child to first child ( temp 2-component vector of int)
18 0:8          'tc2' ( temp 2-component vector of int)
19 0:8          Constant:
20 0:8            0 (const int)
21 0:8            0 (const int)
22 0:9      Sequence
23 0:9        move second child to first child ( temp int)
24 0:9          'tc' ( temp int)
25 0:9          Constant:
26 0:9            0 (const int)
27 0:12      Sequence
28 0:12        move second child to first child ( temp 3-component vector of float)
29 0:12          vector swizzle ( temp 3-component vector of float)
30 0:12            'storeTemp' ( temp 3-component vector of float)
31 0:12            Sequence
32 0:12              Constant:
33 0:12                2 (const int)
34 0:12              Constant:
35 0:12                1 (const int)
36 0:12              Constant:
37 0:12                0 (const int)
38 0:?           Constant:
39 0:?             1.000000
40 0:?             2.000000
41 0:?             3.000000
42 0:12        imageStore ( temp void)
43 0:12          'rwtx' (layout( rgba32f) uniform image2D)
44 0:12          'tc2' ( temp 2-component vector of int)
45 0:12          'storeTemp' ( temp 3-component vector of float)
46 0:12        'storeTemp' ( temp 3-component vector of float)
47 0:13      Sequence
48 0:13        move second child to first child ( temp 3-component vector of float)
49 0:13          vector swizzle ( temp 3-component vector of float)
50 0:13            'storeTemp' ( temp 3-component vector of float)
51 0:13            Sequence
52 0:13              Constant:
53 0:13                2 (const int)
54 0:13              Constant:
55 0:13                1 (const int)
56 0:13              Constant:
57 0:13                0 (const int)
58 0:13          Function Call: SomeValue( ( temp 3-component vector of float)
59 0:13        imageStore ( temp void)
60 0:13          'rwtx' (layout( rgba32f) uniform image2D)
61 0:13          'tc2' ( temp 2-component vector of int)
62 0:13          'storeTemp' ( temp 3-component vector of float)
63 0:13        'storeTemp' ( temp 3-component vector of float)
64 0:14      Sequence
65 0:14        move second child to first child ( temp 3-component vector of float)
66 0:14          vector swizzle ( temp 3-component vector of float)
67 0:14            'storeTemp' ( temp 3-component vector of float)
68 0:14            Sequence
69 0:14              Constant:
70 0:14                2 (const int)
71 0:14              Constant:
72 0:14                1 (const int)
73 0:14              Constant:
74 0:14                0 (const int)
75 0:14          Constant:
76 0:14            2.000000
77 0:14            2.000000
78 0:14            2.000000
79 0:14        imageStore ( temp void)
80 0:14          'rwtx' (layout( rgba32f) uniform image2D)
81 0:14          'tc2' ( temp 2-component vector of int)
82 0:14          'storeTemp' ( temp 3-component vector of float)
83 0:14        'storeTemp' ( temp 3-component vector of float)
84 0:27      Branch: Return with expression
85 0:27        Constant:
86 0:27          0.000000
87 0:27          0.000000
88 0:27          0.000000
89 0:27          0.000000
90 0:7  Function Definition: main( ( temp void)
91 0:7    Function Parameters: 
92 0:?     Sequence
93 0:7      move second child to first child ( temp 4-component vector of float)
94 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
95 0:7        Function Call: @main( ( temp 4-component vector of float)
96 0:?   Linker Objects
97 0:?     'rwtx' (layout( rgba32f) uniform image2D)
98 0:?     'buf' (layout( rgba32f) uniform imageBuffer)
99 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
100
101
102 Linked fragment stage:
103
104
105 Shader version: 450
106 gl_FragCoord origin is upper left
107 0:? Sequence
108 0:4  Function Definition: SomeValue( ( temp 3-component vector of float)
109 0:4    Function Parameters: 
110 0:?     Sequence
111 0:4      Branch: Return with expression
112 0:?         Constant:
113 0:?           1.000000
114 0:?           2.000000
115 0:?           3.000000
116 0:7  Function Definition: @main( ( temp 4-component vector of float)
117 0:7    Function Parameters: 
118 0:?     Sequence
119 0:8      Sequence
120 0:8        move second child to first child ( temp 2-component vector of int)
121 0:8          'tc2' ( temp 2-component vector of int)
122 0:8          Constant:
123 0:8            0 (const int)
124 0:8            0 (const int)
125 0:9      Sequence
126 0:9        move second child to first child ( temp int)
127 0:9          'tc' ( temp int)
128 0:9          Constant:
129 0:9            0 (const int)
130 0:12      Sequence
131 0:12        move second child to first child ( temp 3-component vector of float)
132 0:12          vector swizzle ( temp 3-component vector of float)
133 0:12            'storeTemp' ( temp 3-component vector of float)
134 0:12            Sequence
135 0:12              Constant:
136 0:12                2 (const int)
137 0:12              Constant:
138 0:12                1 (const int)
139 0:12              Constant:
140 0:12                0 (const int)
141 0:?           Constant:
142 0:?             1.000000
143 0:?             2.000000
144 0:?             3.000000
145 0:12        imageStore ( temp void)
146 0:12          'rwtx' (layout( rgba32f) uniform image2D)
147 0:12          'tc2' ( temp 2-component vector of int)
148 0:12          'storeTemp' ( temp 3-component vector of float)
149 0:12        'storeTemp' ( temp 3-component vector of float)
150 0:13      Sequence
151 0:13        move second child to first child ( temp 3-component vector of float)
152 0:13          vector swizzle ( temp 3-component vector of float)
153 0:13            'storeTemp' ( temp 3-component vector of float)
154 0:13            Sequence
155 0:13              Constant:
156 0:13                2 (const int)
157 0:13              Constant:
158 0:13                1 (const int)
159 0:13              Constant:
160 0:13                0 (const int)
161 0:13          Function Call: SomeValue( ( temp 3-component vector of float)
162 0:13        imageStore ( temp void)
163 0:13          'rwtx' (layout( rgba32f) uniform image2D)
164 0:13          'tc2' ( temp 2-component vector of int)
165 0:13          'storeTemp' ( temp 3-component vector of float)
166 0:13        'storeTemp' ( temp 3-component vector of float)
167 0:14      Sequence
168 0:14        move second child to first child ( temp 3-component vector of float)
169 0:14          vector swizzle ( temp 3-component vector of float)
170 0:14            'storeTemp' ( temp 3-component vector of float)
171 0:14            Sequence
172 0:14              Constant:
173 0:14                2 (const int)
174 0:14              Constant:
175 0:14                1 (const int)
176 0:14              Constant:
177 0:14                0 (const int)
178 0:14          Constant:
179 0:14            2.000000
180 0:14            2.000000
181 0:14            2.000000
182 0:14        imageStore ( temp void)
183 0:14          'rwtx' (layout( rgba32f) uniform image2D)
184 0:14          'tc2' ( temp 2-component vector of int)
185 0:14          'storeTemp' ( temp 3-component vector of float)
186 0:14        'storeTemp' ( temp 3-component vector of float)
187 0:27      Branch: Return with expression
188 0:27        Constant:
189 0:27          0.000000
190 0:27          0.000000
191 0:27          0.000000
192 0:27          0.000000
193 0:7  Function Definition: main( ( temp void)
194 0:7    Function Parameters: 
195 0:?     Sequence
196 0:7      move second child to first child ( temp 4-component vector of float)
197 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
198 0:7        Function Call: @main( ( temp 4-component vector of float)
199 0:?   Linker Objects
200 0:?     'rwtx' (layout( rgba32f) uniform image2D)
201 0:?     'buf' (layout( rgba32f) uniform imageBuffer)
202 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
203
204 // Module Version 10000
205 // Generated by (magic number): 80001
206 // Id's are bound by 63
207
208                               Capability Shader
209                               Capability SampledBuffer
210                1:             ExtInstImport  "GLSL.std.450"
211                               MemoryModel Logical GLSL450
212                               EntryPoint Fragment 4  "main" 58
213                               ExecutionMode 4 OriginUpperLeft
214                               Name 4  "main"
215                               Name 9  "SomeValue("
216                               Name 13  "@main("
217                               Name 24  "tc2"
218                               Name 28  "tc"
219                               Name 30  "storeTemp"
220                               Name 35  "rwtx"
221                               Name 39  "storeTemp"
222                               Name 46  "storeTemp"
223                               Name 58  "@entryPointOutput"
224                               Name 62  "buf"
225                               Decorate 35(rwtx) DescriptorSet 0
226                               Decorate 58(@entryPointOutput) Location 0
227                               Decorate 62(buf) DescriptorSet 0
228                2:             TypeVoid
229                3:             TypeFunction 2
230                6:             TypeFloat 32
231                7:             TypeVector 6(float) 3
232                8:             TypeFunction 7(fvec3)
233               11:             TypeVector 6(float) 4
234               12:             TypeFunction 11(fvec4)
235               15:    6(float) Constant 1065353216
236               16:    6(float) Constant 1073741824
237               17:    6(float) Constant 1077936128
238               18:    7(fvec3) ConstantComposite 15 16 17
239               21:             TypeInt 32 1
240               22:             TypeVector 21(int) 2
241               23:             TypePointer Function 22(ivec2)
242               25:     21(int) Constant 0
243               26:   22(ivec2) ConstantComposite 25 25
244               27:             TypePointer Function 21(int)
245               29:             TypePointer Function 7(fvec3)
246               33:             TypeImage 6(float) 2D nonsampled format:Rgba32f
247               34:             TypePointer UniformConstant 33
248         35(rwtx):     34(ptr) Variable UniformConstant
249               47:    7(fvec3) ConstantComposite 16 16 16
250               53:    6(float) Constant 0
251               54:   11(fvec4) ConstantComposite 53 53 53 53
252               57:             TypePointer Output 11(fvec4)
253 58(@entryPointOutput):     57(ptr) Variable Output
254               60:             TypeImage 6(float) Buffer nonsampled format:Rgba32f
255               61:             TypePointer UniformConstant 60
256          62(buf):     61(ptr) Variable UniformConstant
257          4(main):           2 Function None 3
258                5:             Label
259               59:   11(fvec4) FunctionCall 13(@main()
260                               Store 58(@entryPointOutput) 59
261                               Return
262                               FunctionEnd
263    9(SomeValue():    7(fvec3) Function None 8
264               10:             Label
265                               ReturnValue 18
266                               FunctionEnd
267       13(@main():   11(fvec4) Function None 12
268               14:             Label
269          24(tc2):     23(ptr) Variable Function
270           28(tc):     27(ptr) Variable Function
271    30(storeTemp):     29(ptr) Variable Function
272    39(storeTemp):     29(ptr) Variable Function
273    46(storeTemp):     29(ptr) Variable Function
274                               Store 24(tc2) 26
275                               Store 28(tc) 25
276               31:    7(fvec3) Load 30(storeTemp)
277               32:    7(fvec3) VectorShuffle 31 18 5 4 3
278                               Store 30(storeTemp) 32
279               36:          33 Load 35(rwtx)
280               37:   22(ivec2) Load 24(tc2)
281               38:    7(fvec3) Load 30(storeTemp)
282                               ImageWrite 36 37 38
283               40:    7(fvec3) FunctionCall 9(SomeValue()
284               41:    7(fvec3) Load 39(storeTemp)
285               42:    7(fvec3) VectorShuffle 41 40 5 4 3
286                               Store 39(storeTemp) 42
287               43:          33 Load 35(rwtx)
288               44:   22(ivec2) Load 24(tc2)
289               45:    7(fvec3) Load 39(storeTemp)
290                               ImageWrite 43 44 45
291               48:    7(fvec3) Load 46(storeTemp)
292               49:    7(fvec3) VectorShuffle 48 47 5 4 3
293                               Store 46(storeTemp) 49
294               50:          33 Load 35(rwtx)
295               51:   22(ivec2) Load 24(tc2)
296               52:    7(fvec3) Load 46(storeTemp)
297                               ImageWrite 50 51 52
298                               ReturnValue 54
299                               FunctionEnd