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