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