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