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