1hlsl.intrinsics.evalfns.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:3  Function Definition: @main(f1;vf2;vf3;vf4;vi2; ( temp void)
60:3    Function Parameters:
70:3      'inF1' ( in float)
80:3      'inF2' ( in 2-component vector of float)
90:3      'inF3' ( in 3-component vector of float)
100:3      'inF4' ( in 4-component vector of float)
110:3      'inI2' ( in 2-component vector of int)
120:?     Sequence
130:4      interpolateAtOffset ( temp float)
140:4        'inF1' ( in float)
150:?         Constant:
160:?           -0.500000
170:?           -0.062500
180:5      interpolateAtOffset ( temp 2-component vector of float)
190:5        'inF2' ( in 2-component vector of float)
200:?         Constant:
210:?           0.000000
220:?           0.062500
230:6      interpolateAtOffset ( temp 3-component vector of float)
240:6        'inF3' ( in 3-component vector of float)
250:?         Constant:
260:?           0.187500
270:?           -0.375000
280:7      interpolateAtOffset ( temp 4-component vector of float)
290:7        'inF4' ( in 4-component vector of float)
300:?         Constant:
310:?           0.437500
320:?           -0.500000
330:9      interpolateAtOffset ( temp float)
340:9        'inF1' ( in float)
350:9        vector-scale ( temp 2-component vector of float)
360:9          Convert int to float ( temp 2-component vector of float)
370:9            right-shift ( temp 2-component vector of int)
380:9              left-shift ( temp 2-component vector of int)
390:9                'inI2' ( in 2-component vector of int)
400:9                Constant:
410:9                  28 (const int)
420:9              Constant:
430:9                28 (const int)
440:9          Constant:
450:9            0.062500
460:3  Function Definition: main( ( temp void)
470:3    Function Parameters:
480:?     Sequence
490:3      move second child to first child ( temp float)
500:?         'inF1' ( temp float)
510:?         'inF1' (layout( location=0) in float)
520:3      move second child to first child ( temp 2-component vector of float)
530:?         'inF2' ( temp 2-component vector of float)
540:?         'inF2' (layout( location=1) in 2-component vector of float)
550:3      move second child to first child ( temp 3-component vector of float)
560:?         'inF3' ( temp 3-component vector of float)
570:?         'inF3' (layout( location=2) in 3-component vector of float)
580:3      move second child to first child ( temp 4-component vector of float)
590:?         'inF4' ( temp 4-component vector of float)
600:?         'inF4' (layout( location=3) in 4-component vector of float)
610:3      move second child to first child ( temp 2-component vector of int)
620:?         'inI2' ( temp 2-component vector of int)
630:?         'inI2' (layout( location=4) flat in 2-component vector of int)
640:3      Function Call: @main(f1;vf2;vf3;vf4;vi2; ( temp void)
650:?         'inF1' ( temp float)
660:?         'inF2' ( temp 2-component vector of float)
670:?         'inF3' ( temp 3-component vector of float)
680:?         'inF4' ( temp 4-component vector of float)
690:?         'inI2' ( temp 2-component vector of int)
700:?   Linker Objects
710:?     'inF1' (layout( location=0) in float)
720:?     'inF2' (layout( location=1) in 2-component vector of float)
730:?     'inF3' (layout( location=2) in 3-component vector of float)
740:?     'inF4' (layout( location=3) in 4-component vector of float)
750:?     'inI2' (layout( location=4) flat in 2-component vector of int)
76
77
78Linked fragment stage:
79
80
81Shader version: 500
82gl_FragCoord origin is upper left
830:? Sequence
840:3  Function Definition: @main(f1;vf2;vf3;vf4;vi2; ( temp void)
850:3    Function Parameters:
860:3      'inF1' ( in float)
870:3      'inF2' ( in 2-component vector of float)
880:3      'inF3' ( in 3-component vector of float)
890:3      'inF4' ( in 4-component vector of float)
900:3      'inI2' ( in 2-component vector of int)
910:?     Sequence
920:4      interpolateAtOffset ( temp float)
930:4        'inF1' ( in float)
940:?         Constant:
950:?           -0.500000
960:?           -0.062500
970:5      interpolateAtOffset ( temp 2-component vector of float)
980:5        'inF2' ( in 2-component vector of float)
990:?         Constant:
1000:?           0.000000
1010:?           0.062500
1020:6      interpolateAtOffset ( temp 3-component vector of float)
1030:6        'inF3' ( in 3-component vector of float)
1040:?         Constant:
1050:?           0.187500
1060:?           -0.375000
1070:7      interpolateAtOffset ( temp 4-component vector of float)
1080:7        'inF4' ( in 4-component vector of float)
1090:?         Constant:
1100:?           0.437500
1110:?           -0.500000
1120:9      interpolateAtOffset ( temp float)
1130:9        'inF1' ( in float)
1140:9        vector-scale ( temp 2-component vector of float)
1150:9          Convert int to float ( temp 2-component vector of float)
1160:9            right-shift ( temp 2-component vector of int)
1170:9              left-shift ( temp 2-component vector of int)
1180:9                'inI2' ( in 2-component vector of int)
1190:9                Constant:
1200:9                  28 (const int)
1210:9              Constant:
1220:9                28 (const int)
1230:9          Constant:
1240:9            0.062500
1250:3  Function Definition: main( ( temp void)
1260:3    Function Parameters:
1270:?     Sequence
1280:3      move second child to first child ( temp float)
1290:?         'inF1' ( temp float)
1300:?         'inF1' (layout( location=0) in float)
1310:3      move second child to first child ( temp 2-component vector of float)
1320:?         'inF2' ( temp 2-component vector of float)
1330:?         'inF2' (layout( location=1) in 2-component vector of float)
1340:3      move second child to first child ( temp 3-component vector of float)
1350:?         'inF3' ( temp 3-component vector of float)
1360:?         'inF3' (layout( location=2) in 3-component vector of float)
1370:3      move second child to first child ( temp 4-component vector of float)
1380:?         'inF4' ( temp 4-component vector of float)
1390:?         'inF4' (layout( location=3) in 4-component vector of float)
1400:3      move second child to first child ( temp 2-component vector of int)
1410:?         'inI2' ( temp 2-component vector of int)
1420:?         'inI2' (layout( location=4) flat in 2-component vector of int)
1430:3      Function Call: @main(f1;vf2;vf3;vf4;vi2; ( temp void)
1440:?         'inF1' ( temp float)
1450:?         'inF2' ( temp 2-component vector of float)
1460:?         'inF3' ( temp 3-component vector of float)
1470:?         'inF4' ( temp 4-component vector of float)
1480:?         'inI2' ( temp 2-component vector of int)
1490:?   Linker Objects
1500:?     'inF1' (layout( location=0) in float)
1510:?     'inF2' (layout( location=1) in 2-component vector of float)
1520:?     'inF3' (layout( location=2) in 3-component vector of float)
1530:?     'inF4' (layout( location=3) in 4-component vector of float)
1540:?     'inI2' (layout( location=4) flat in 2-component vector of int)
155
156Validation failed
157// Module Version 10000
158// Generated by (magic number): 8000a
159// Id's are bound by 80
160
161                              Capability Shader
162                              Capability InterpolationFunction
163               1:             ExtInstImport  "GLSL.std.450"
164                              MemoryModel Logical GLSL450
165                              EntryPoint Fragment 4  "main" 51 55 59 63 67
166                              ExecutionMode 4 OriginUpperLeft
167                              Source HLSL 500
168                              Name 4  "main"
169                              Name 23  "@main(f1;vf2;vf3;vf4;vi2;"
170                              Name 18  "inF1"
171                              Name 19  "inF2"
172                              Name 20  "inF3"
173                              Name 21  "inF4"
174                              Name 22  "inI2"
175                              Name 49  "inF1"
176                              Name 51  "inF1"
177                              Name 53  "inF2"
178                              Name 55  "inF2"
179                              Name 57  "inF3"
180                              Name 59  "inF3"
181                              Name 61  "inF4"
182                              Name 63  "inF4"
183                              Name 65  "inI2"
184                              Name 67  "inI2"
185                              Name 69  "param"
186                              Name 71  "param"
187                              Name 73  "param"
188                              Name 75  "param"
189                              Name 77  "param"
190                              Decorate 51(inF1) Location 0
191                              Decorate 55(inF2) Location 1
192                              Decorate 59(inF3) Location 2
193                              Decorate 63(inF4) Location 3
194                              Decorate 67(inI2) Flat
195                              Decorate 67(inI2) Location 4
196               2:             TypeVoid
197               3:             TypeFunction 2
198               6:             TypeFloat 32
199               7:             TypePointer Function 6(float)
200               8:             TypeVector 6(float) 2
201               9:             TypePointer Function 8(fvec2)
202              10:             TypeVector 6(float) 3
203              11:             TypePointer Function 10(fvec3)
204              12:             TypeVector 6(float) 4
205              13:             TypePointer Function 12(fvec4)
206              14:             TypeInt 32 1
207              15:             TypeVector 14(int) 2
208              16:             TypePointer Function 15(ivec2)
209              17:             TypeFunction 2 7(ptr) 9(ptr) 11(ptr) 13(ptr) 16(ptr)
210              25:    6(float) Constant 3204448256
211              26:    6(float) Constant 3179282432
212              27:    8(fvec2) ConstantComposite 25 26
213              29:    6(float) Constant 0
214              30:    6(float) Constant 1031798784
215              31:    8(fvec2) ConstantComposite 29 30
216              33:    6(float) Constant 1044381696
217              34:    6(float) Constant 3200253952
218              35:    8(fvec2) ConstantComposite 33 34
219              37:    6(float) Constant 1054867456
220              38:    8(fvec2) ConstantComposite 37 25
221              41:     14(int) Constant 28
222              50:             TypePointer Input 6(float)
223        51(inF1):     50(ptr) Variable Input
224              54:             TypePointer Input 8(fvec2)
225        55(inF2):     54(ptr) Variable Input
226              58:             TypePointer Input 10(fvec3)
227        59(inF3):     58(ptr) Variable Input
228              62:             TypePointer Input 12(fvec4)
229        63(inF4):     62(ptr) Variable Input
230              66:             TypePointer Input 15(ivec2)
231        67(inI2):     66(ptr) Variable Input
232         4(main):           2 Function None 3
233               5:             Label
234        49(inF1):      7(ptr) Variable Function
235        53(inF2):      9(ptr) Variable Function
236        57(inF3):     11(ptr) Variable Function
237        61(inF4):     13(ptr) Variable Function
238        65(inI2):     16(ptr) Variable Function
239       69(param):      7(ptr) Variable Function
240       71(param):      9(ptr) Variable Function
241       73(param):     11(ptr) Variable Function
242       75(param):     13(ptr) Variable Function
243       77(param):     16(ptr) Variable Function
244              52:    6(float) Load 51(inF1)
245                              Store 49(inF1) 52
246              56:    8(fvec2) Load 55(inF2)
247                              Store 53(inF2) 56
248              60:   10(fvec3) Load 59(inF3)
249                              Store 57(inF3) 60
250              64:   12(fvec4) Load 63(inF4)
251                              Store 61(inF4) 64
252              68:   15(ivec2) Load 67(inI2)
253                              Store 65(inI2) 68
254              70:    6(float) Load 49(inF1)
255                              Store 69(param) 70
256              72:    8(fvec2) Load 53(inF2)
257                              Store 71(param) 72
258              74:   10(fvec3) Load 57(inF3)
259                              Store 73(param) 74
260              76:   12(fvec4) Load 61(inF4)
261                              Store 75(param) 76
262              78:   15(ivec2) Load 65(inI2)
263                              Store 77(param) 78
264              79:           2 FunctionCall 23(@main(f1;vf2;vf3;vf4;vi2;) 69(param) 71(param) 73(param) 75(param) 77(param)
265                              Return
266                              FunctionEnd
26723(@main(f1;vf2;vf3;vf4;vi2;):           2 Function None 17
268        18(inF1):      7(ptr) FunctionParameter
269        19(inF2):      9(ptr) FunctionParameter
270        20(inF3):     11(ptr) FunctionParameter
271        21(inF4):     13(ptr) FunctionParameter
272        22(inI2):     16(ptr) FunctionParameter
273              24:             Label
274              28:    6(float) ExtInst 1(GLSL.std.450) 78(InterpolateAtOffset) 18(inF1) 27
275              32:    8(fvec2) ExtInst 1(GLSL.std.450) 78(InterpolateAtOffset) 19(inF2) 31
276              36:   10(fvec3) ExtInst 1(GLSL.std.450) 78(InterpolateAtOffset) 20(inF3) 35
277              39:   12(fvec4) ExtInst 1(GLSL.std.450) 78(InterpolateAtOffset) 21(inF4) 38
278              40:   15(ivec2) Load 22(inI2)
279              42:   15(ivec2) CompositeConstruct 41 41
280              43:   15(ivec2) ShiftLeftLogical 40 42
281              44:   15(ivec2) CompositeConstruct 41 41
282              45:   15(ivec2) ShiftRightArithmetic 43 44
283              46:    8(fvec2) ConvertSToF 45
284              47:    8(fvec2) VectorTimesScalar 46 30
285              48:    6(float) ExtInst 1(GLSL.std.450) 78(InterpolateAtOffset) 18(inF1) 47
286                              Return
287                              FunctionEnd
288