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