• Home
  • Raw
  • Download

Lines Matching +full:3 +full:y

3 #X3. Array constructor:		float[3] (1.0, 2.0, 5.5)				// 3-element array with given elements
7 #X6. Empty brackets: float x[] = float[] (1.0, 2.0, 3.0); // Size of x is 3
8 # float y[] = float[3] (1.0, 2.0, 3.0); // Size of y is 3 (equivalent)
9 # float z[] = y; // Size of z is 3
10 #X7. Testing that 2-dimensional arrays don't work: float a[5][3]; // Illegal
11 # float[5] a[3]; // Illegal
13 #X9. Testing length() operator: z.length(); // Returns 3 for z defined before
36 float[3] x;
37 x = float[3] (in0.z, in0.x, in0.y);
61 x = float[4] (in0.z, in0.x, in0.w, in0.y);
62 out0 = vec4(x[0], x[1], x[2], x[3]);
72 input ivec3 in0 = [ ivec3(0, 1, 2) | ivec3(7, -1, 2) | ivec3(3, 1, -2) ];
73 output ivec3 out0 = [ ivec3(2, 0, 1) | ivec3(2, 7, -1) | ivec3(-2, 3, 1) ];
85 int[3] x;
86 x = int[3] (in0.z, in0.x, in0.y);
97 input ivec4 in0 = [ ivec4(0, 1, 2, 0) | ivec4(7, -1, 2, -1) | ivec4(3, 1, -2, 0) ];
98 output ivec4 out0 = [ ivec4(2, 0, 0, 1) | ivec4(2, 7, -1, -1) | ivec4(-2, 3, 0, 1) ];
111 x = int[4] (in0.z, in0.x, in0.w, in0.y);
112 out0 = ivec4(x[0], x[1], x[2], x[3]);
134 bool[3] x;
135 x = bool[3] (in0.z, in0.x, in0.y);
159 x = bool[4] (in0.z, in0.x, in0.y, in0.w);
160 out0 = bvec4(x[0], x[1], x[2], x[3]);
191 test a = test(in0.z, vec3(in0.x, in0.y, in0.z));
192 test b = test(in0.y, vec3(-in0.z, -in0.x, -in0.y));
193 test c = test(in0.x, vec3(-in0.y, in0.z, -in0.x));
195 test[3] x = test[3] (a, b, c);
197 out0 = vec3(x[0].f, x[1].v.y, x[2].v.x);
228 test a = test(in0.z, vec3(in0.x, in0.y, in0.z));
229 test b = test(in0.y, vec3(-in0.z, -in0.x, -in0.y));
230 test c = test(in0.x, vec3(-in0.y, in0.z, -in0.x));
235 out0 = vec4(x[0].f, x[1].v.y, x[2].v.x, x[3].v.x);
259 vec3[3] x;
260 x = vec3[3] ( vec3(in0.x, in0.y, in0.z) ,
261 vec3(-in0.y, -in0.z, -in0.x),
262 vec3(in0.z, in0.x, in0.y) );
263 out0 = vec3(x[0].x, x[1].y, x[2].z);
273 input ivec3 in0 = [ ivec3(5, 1, 2) | ivec3(7, -1, 2) | ivec3(3, 1, -2) ];
274 output ivec3 out0 = [ ivec3(5, -2, 1) | ivec3(7, -2, -1) | ivec3(3, 2, 1) ];
287 ivec3[3] x;
288 x = ivec3[3] ( ivec3(in0.x, in0.y, in0.z) ,
289 ivec3(-in0.y, -in0.z, -in0.x),
290 ivec3(in0.z, in0.x, in0.y) );
291 out0 = ivec3(x[0].x, x[1].y, x[2].z);
314 bvec3[3] x;
315 x = bvec3[3] ( bvec3(in0.x, in0.y, in0.z) ,
316 bvec3(in0.y, in0.z, in0.x),
317 bvec3(in0.z, in0.x, in0.y) );
318 out0 = bvec3(x[0].x, x[1].y, x[2].z);
340 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
341 in0.x, in0.y, in0.z,
342 in0.x, in0.y, in0.z) ,
343 mat3( in0.z, in0.x, -in0.y,
344 in0.z, in0.x, -in0.y,
345 in0.z, in0.x, -in0.y) ,
347 -in0.y, -in0.y, in0.y,
381 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
382 in0.x, in0.y, in0.z,
383 in0.x, in0.y, in0.z) ,
384 mat3( in0.z, in0.x, -in0.y,
385 in0.z, in0.x, -in0.y,
386 in0.z, in0.x, -in0.y) ,
388 -in0.y, -in0.y, in0.y,
421 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
422 in0.x, in0.y, in0.z,
423 in0.x, in0.y, in0.z) ,
424 mat3( in0.z, in0.x, in0.y,
425 in0.z, in0.x, in0.y,
426 in0.z, in0.x, in0.y) ,
428 in0.y, in0.y, in0.y,
462 float[3] func(vec3 a)
464 return float[3] (a.z, -a.x, a.y);
470 float[3] x = func(in0);
481 input ivec3 in0 = [ ivec3(4, 1, 2) | ivec3(7, -1, 2) | ivec3(3, 1, -2) ];
482 output ivec3 out0 = [ ivec3(2, -4, 1) | ivec3(2, -7, -1) | ivec3(-2, -3, 1) ];
491 int[3] func(ivec3 a)
493 return int[3] (a.z, -a.x, a.y);
499 int[3] x = func(in0);
519 bool[3] func(bvec3 a)
521 return bool[3] (a.z, a.x, a.y);
527 bool[3] x = func(in0);
549 vec3[3] func(vec3[3] a)
551 return vec3[3] (a[1], a[2], a[0]);
557 vec3[3] x = vec3[3](vec3(in0.x, in0.y, -in0.z) ,
558 vec3(in0.y, -in0.z, in0.x) ,
559 vec3(-in0.z, in0.x, in0.y) );
561 out0 = vec3(x[0].x, x[1].y, x[2].z);
586 test[3] func(test[3] a)
588 return test[3] (a[1], a[2], a[0]);
595 test a = test(in0.z, vec3(in0.x, in0.y, in0.z));
596 test b = test(in0.y, vec3(-in0.z, -in0.x, -in0.y));
597 test c = test(in0.x, vec3(-in0.y, in0.z, -in0.x));
599 test[3] t = test[3] (a, b, c);
600 test[3] x = func(t);
602 out0 = vec3(x[0].v.z, x[1].v.y, x[2].v.x);
622 ivec3[3] func(ivec3[3] a)
624 return ivec3[3] (a[1], a[2], a[0]);
630 ivec3[3] x = ivec3[3]( ivec3(in0.x, in0.y, -in0.z) ,
631 ivec3(in0.y, -in0.z, in0.x) ,
632 ivec3(-in0.z, in0.x, in0.y) );
634 out0 = ivec3(x[0].x, x[1].y, x[2].z);
654 bvec3[3] func(bvec3[3] a)
656 return bvec3[3] (a[1], a[2], a[0]);
662 bvec3[3] x = bvec3[3]( bvec3(in0.x, in0.y, in0.z) ,
663 bvec3(in0.y, in0.z, in0.x) ,
664 bvec3(in0.z, in0.x, in0.y) );
666 out0 = bvec3(x[0].x, x[1].y, x[2].z);
685 mat3[3] func(mat3[3] x)
687 mat3[3] r;
697 mat3[3] a, b;
698 a[0] = mat3(in0.x, in0.y, in0.z,
699 in0.x, in0.y, in0.z,
700 in0.x, in0.y, in0.z);
701 a[1] = mat3(in0.z, in0.x, -in0.y,
702 in0.z, in0.x, -in0.y,
703 in0.z, in0.x, -in0.y);
705 -in0.y, -in0.y, in0.y,
738 mat3[3] func(mat3[3] x)
740 mat3[3] r;
750 mat3[3] a, b;
751 a[0] = mat3(in0.x, in0.y, in0.z,
752 in0.x, in0.y, in0.z,
753 in0.x, in0.y, in0.z);
754 a[1] = mat3(in0.z, in0.x, -in0.y,
755 in0.z, in0.x, -in0.y,
756 in0.z, in0.x, -in0.y);
758 -in0.y, -in0.y, in0.y,
790 mat3[3] func(mat3[3] x)
792 mat3[3] r;
802 mat3[3] a, b;
803 a[0] = mat3(in0.x, in0.y, in0.z,
804 in0.x, in0.y, in0.z,
805 in0.x, in0.y, in0.z);
806 a[1] = mat3(in0.z, in0.x, in0.y,
807 in0.z, in0.x, in0.y,
808 in0.z, in0.x, in0.y);
810 in0.y, in0.y, in0.y,
846 float[3] func(float[3]);
851 float[3] a = float[3] (in0.x, in0.y, in0.z);
852 float[3] b = func(a);
857 float[3] func(float[3] a)
859 return float[3] (a[2], a[0], a[1]);
869 input ivec3 in0 = [ ivec3(0, 1, 2) | ivec3(7, -1, 2) | ivec3(3, 1, -2) ];
870 output ivec3 out0 = [ ivec3(2, 0, 1) | ivec3(2, 7, -1) | ivec3(-2, 3, 1) ];
879 int[3] func(int[3]);
884 int[3] a = int[3] (in0.x, in0.y, in0.z);
885 int[3] b = func(a);
890 int[3] func(int[3] a)
892 return int[3] (a[2], a[0], a[1]);
911 bool[3] func(bool[3]);
916 bool[3] a = bool[3] (in0.x, in0.y, in0.z);
917 bool[3] b = func(a);
922 bool[3] func(bool[3] a)
924 return bool[3] (a[2], a[0], a[1]);
949 test[3] func(test[3]);
955 test a = test(in0.z, vec3(in0.x, in0.y, in0.z));
956 test b = test(in0.y, vec3(-in0.z, -in0.x, -in0.y));
957 test c = test(in0.x, vec3(-in0.y, in0.z, -in0.x));
959 test[3] t = test[3] (a, b, c);
960 test[3] x = func(t);
961 out0 = vec3(x[0].v.z, x[1].v.y, x[2].v.x);
965 test[3] func(test[3] a)
967 return test[3] (a[1], a[2], a[0]);
986 vec3[3] func(vec3[3]);
991 vec3[3] x = vec3[3](vec3(in0.x, in0.y, -in0.z) ,
992 vec3(in0.y, -in0.z, in0.x) ,
993 vec3(-in0.z, in0.x, in0.y) );
995 out0 = vec3(x[0].x, x[1].y, x[2].z);
999 vec3[3] func(vec3[3] a)
1001 return vec3[3] (a[1], a[2], a[0]);
1020 ivec3[3] func(ivec3[3]);
1025 ivec3[3] x = ivec3[3]( ivec3(in0.x, in0.y, -in0.z) ,
1026 ivec3(in0.y, -in0.z, in0.x) ,
1027 ivec3(-in0.z, in0.x, in0.y) );
1029 out0 = ivec3(x[0].x, x[1].y, x[2].z);
1033 ivec3[3] func(ivec3[3] a)
1035 return ivec3[3] (a[1], a[2], a[0]);
1054 bvec3[3] func(bvec3[3]);
1059 bvec3[3] x = bvec3[3]( bvec3(in0.x, in0.y, in0.z) ,
1060 bvec3(in0.y, in0.z, in0.x) ,
1061 bvec3(in0.z, in0.x, in0.y) );
1063 out0 = bvec3(x[0].x, x[1].y, x[2].z);
1067 bvec3[3] func(bvec3[3] a)
1069 return bvec3[3] (a[1], a[2], a[0]);
1088 mat3[3] func(mat3[3]);
1093 mat3[3] a, b;
1094 a[0] = mat3(in0.x, in0.y, in0.z,
1095 in0.x, in0.y, in0.z,
1096 in0.x, in0.y, in0.z);
1097 a[1] = mat3(in0.z, in0.x, -in0.y,
1098 in0.z, in0.x, -in0.y,
1099 in0.z, in0.x, -in0.y);
1101 -in0.y, -in0.y, in0.y,
1118 mat3[3] func(mat3[3] x)
1120 mat3[3] r;
1143 mat3[3] func(mat3[3]);
1148 mat3[3] a, b;
1149 a[0] = mat3(in0.x, in0.y, in0.z,
1150 in0.x, in0.y, in0.z,
1151 in0.x, in0.y, in0.z);
1152 a[1] = mat3(in0.z, in0.x, -in0.y,
1153 in0.z, in0.x, -in0.y,
1154 in0.z, in0.x, -in0.y);
1156 -in0.y, -in0.y, in0.y,
1173 mat3[3] func(mat3[3] x)
1175 mat3[3] r;
1197 mat3[3] func(mat3[3]);
1201 mat3[3] a, b;
1202 a[0] = mat3(in0.x, in0.y, in0.z,
1203 in0.x, in0.y, in0.z,
1204 in0.x, in0.y, in0.z);
1205 a[1] = mat3(in0.z, in0.x, in0.y,
1206 in0.z, in0.x, in0.y,
1207 in0.z, in0.x, in0.y);
1209 in0.y, in0.y, in0.y,
1226 mat3[3] func(mat3[3] x)
1228 mat3[3] r;
1257 float[] x = float[] (in0.z, in0.x, in0.y);
1258 float[] y = x;
1260 out0 = vec3(y[0], y[1], y[2]);
1270 input ivec3 in0 = [ ivec3(0, 1, 2) | ivec3(7, -1, 2) | ivec3(3, 1, -2) ];
1271 output ivec3 out0 = [ ivec3(2, 0, 1) | ivec3(2, 7, -1) | ivec3(-2, 3, 1) ];
1283 int[] x = int[] (in0.z, in0.x, in0.y);
1284 int[] y = x;
1286 out0 = ivec3(y[0], y[1], y[2]);
1308 bool[] x = bool[] (in0.z, in0.x, in0.y);
1309 bool[] y = x;
1311 out0 = bvec3(y[0], y[1], y[2]);
1340 test a = test(in0.z, vec3(in0.x, in0.y, in0.z));
1341 test b = test(in0.y, vec3(-in0.z, -in0.x, -in0.y));
1342 test c = test(in0.x, vec3(-in0.y, in0.z, -in0.x));
1345 test[] y = x;
1347 out0 = vec3(y[0].v.x, y[1].v.y, y[2].v.z);
1369 vec3[] x = vec3[] ( vec3(in0.x, in0.y, -in0.z) ,
1370 vec3(in0.y, -in0.z, in0.x) ,
1371 vec3(-in0.z, in0.x, in0.y) );
1372 vec3[] y = x;
1373 out0 = vec3(y[0].x, y[1].y, y[2].z);
1396 ivec3[] x = ivec3[] ( ivec3(in0.x, in0.y, -in0.z) ,
1397 ivec3(in0.y, -in0.z, in0.x) ,
1398 ivec3(-in0.z, in0.x, in0.y) );
1399 ivec3[] y = x;
1400 out0 = ivec3(y[0].x, y[1].y, y[2].z);
1422 bvec3[] x = bvec3[] ( bvec3(in0.x, in0.y, in0.z) ,
1423 bvec3(in0.y, in0.z, in0.x) ,
1424 bvec3(in0.z, in0.x, in0.y) );
1425 bvec3[] y = x;
1426 out0 = bvec3(y[0].x, y[1].y, y[2].z);
1448 mat3[] a = mat3[] ( mat3( in0.x, in0.y, in0.z,
1449 in0.x, in0.y, in0.z,
1450 in0.x, in0.y, in0.z) ,
1451 mat3( in0.z, in0.x, -in0.y,
1452 in0.z, in0.x, -in0.y,
1453 in0.z, in0.x, -in0.y) ,
1455 -in0.y, -in0.y, in0.y,
1489 mat3[] a = mat3[] ( mat3( in0.x, in0.y, in0.z,
1490 in0.x, in0.y, in0.z,
1491 in0.x, in0.y, in0.z) ,
1492 mat3( in0.z, in0.x, -in0.y,
1493 in0.z, in0.x, -in0.y,
1494 in0.z, in0.x, -in0.y) ,
1496 -in0.y, -in0.y, in0.y,
1529 mat3[] a = mat3[] ( mat3( in0.x, in0.y, in0.z,
1530 in0.x, in0.y, in0.z,
1531 in0.x, in0.y, in0.z) ,
1532 mat3( in0.z, in0.x, in0.y,
1533 in0.z, in0.x, in0.y,
1534 in0.z, in0.x, in0.y) ,
1536 in0.y, in0.y, in0.y,
1589 const int a = 3;
1595 float x = float[] (in0.x, in0.y, in0.z, -in0.z, -in0.y, -in0.x) [a];
1596 float y = float[] (in0.x, in0.y, in0.z, -in0.z, -in0.y, -in0.x) [b+2];
1597 float z = float[] (in0.x, in0.y, in0.z, -in0.z, -in0.y, -in0.x) [5];
1598 out0 = vec3(x, y, z);
1609 input ivec2 in1 = ivec2(3, 2);
1621 float x = float[] (in0.x, in0.y, in0.z, -in0.z, -in0.y, -in0.x) [in1.x];
1622 float y = float[] (in0.x, in0.y, in0.z, -in0.z, -in0.y, -in0.x) [in1.y+2];
1623 float z = float[] (in0.x, in0.y, in0.z, -in0.z, -in0.y, -in0.x) [in1.x+in1.y];
1624 out0 = vec3(x, y, z);
1646 float[] x = float[6] (in0.x, in0.y, in0.z, -in0.z, -in0.y, -in0.x),
1647 y = float[2] (in0.x, -in0.y);
1648 out0 = vec3(x[2], y[1], x[0]);
1670 int[] x = int[] (in0.x, in0.y, in0.z, -in0.z, -in0.y, -in0.x),
1671 y = int[] (in0.x, -in0.y);
1672 out0 = ivec3(x[2], y[1], x[0]);
1687 output ivec3 out0 = [ ivec3(3, 5, 13) ];
1698 float[] x = float[3] (in0.z, in0.x, in0.y);
1699 float[] y = float[] (in0.z, in0.x, in0.y, in0.x, in0.y);
1702 out0 = ivec3(x.length(), y.length(), z.length());
1713 output ivec3 out0 = [ ivec3(3, 5, 13) ];
1725 int[] x = int[3] (in0.z, in0.x, in0.y);
1726 int[] y = int[] (in0.z, in0.x, in0.y, in0.x, in0.y);
1729 out0 = ivec3(x.length(), y.length(), z.length());
1740 output ivec3 out0 = [ ivec3(3, 5, 13) ];
1751 bool[] x = bool[3] (in0.z, in0.x, in0.y);
1752 bool[] y = bool[] (in0.z, in0.x, in0.y, in0.x, in0.y);
1755 out0 = ivec3(x.length(), y.length(), z.length());
1766 output ivec3 out0 = [ ivec3(3, 5, 13) ];
1784 test a = test(in0.z, vec3(in0.x, in0.y, in0.z));
1785 test b = test(in0.y, vec3(-in0.z, -in0.x, -in0.y));
1786 test c = test(in0.x, vec3(-in0.y, in0.z, -in0.x));
1788 test[] x = test[3] (a, b, c);
1789 test[] y = test[] (c, a, b, b, a);
1792 out0 = ivec3(x.length(), y.length(), z.length());
1813 float a[5][3];
1830 float[5] a[3];
1844 uniform float a[3][2];
1863 float a[3][2];
1937 a = float[3] { 1.0, 2.0, 3.0 };
1973 float a[] = float[3] { 1.0, 2.0, 3.0 };
1991 float a[3] = { 1.0, 2.0, 3.0 };