Home
last modified time | relevance | path

Searched refs:mat3 (Results 1 – 25 of 393) sorted by relevance

12345678910>>...16

/external/skia/tests/sksl/shared/
DMatrixOpEqualsES2.glsl8 const mat3 splat_4 = mat3(4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0);
9 const mat3 splat_2 = mat3(2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0);
10 mat3 m;
11 m = mat3(2.0);
13 ok = ok && m == mat3(6.0, 4.0, 4.0, 4.0, 6.0, 4.0, 4.0, 4.0, 6.0);
14 m = mat3(2.0);
16 ok = ok && m == mat3(-2.0, -4.0, -4.0, -4.0, -2.0, -4.0, -4.0, -4.0, -2.0);
17 m = mat3(2.0);
19 ok = ok && m == mat3(0.5);
21 m += mat3(2.0);
[all …]
DMatrixEquality.glsl6 uniform mat3 testMatrix3x3;
10 _0_ok = _0_ok && testMatrix3x3 == mat3(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0);
12 _0_ok = _0_ok && testMatrix3x3 != mat3(9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0);
29 …_0_ok = _0_ok && mat3(_2_one, _1_zero, _1_zero, _1_zero, _2_one, _1_zero, _1_zero, _1_zero, _2_one…
30 …_0_ok = _0_ok && mat3(_4_nine, _1_zero, _1_zero, _1_zero, _4_nine, _1_zero, _1_zero, _1_zero, _2_o…
31 _0_ok = _0_ok && mat3(_2_one) == mat3(mat2(1.0));
32 … _0_ok = _0_ok && mat3(_4_nine, 0.0, 0.0, 0.0, _4_nine, 0.0, 0.0, 0.0, _2_one) == mat3(mat2(9.0));
33 _0_ok = _0_ok && mat2(mat3(_2_one)) == mat2(1.0);
34 _0_ok = _0_ok && mat2(mat3(_2_one)) == mat2(1.0);
41 mat3 _5_m = mat3(_2_one, _3_two, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, _4_nine);
DResizeMatrix.glsl7 mat2 a = mat2(mat3(1.0));
11 mat3 c = mat3(mat4(1.0));
13 mat3 d = mat3(mat2(1.0));
15 mat4 e = mat4(mat3(mat2(1.0)));
17 mat2 f = mat2(mat3(mat4(1.0)));
DFunctionReturnTypeMatch.glsl17 mat3 returns_float3x3_f33() {
18 return mat3(3.0);
38 mat3 returns_half3x3_h33() {
39 return mat3(3.0);
74 mat3 x6 = mat3(3.0);
81 mat3 x13 = mat3(3.0);
/external/rust/crates/glam/tests/
Dmat3.rs5 …($t:ident, $newmat3:ident, $mat3:ident, $mat2:ident, $mat4:ident, $quat:ident, $newvec3:ident, $ve…
17 const M0: $mat3 = $mat3::from_cols(
22 const M1: $mat3 = $mat3::from_cols_array(&MATRIX1D);
23 const M2: $mat3 = $mat3::from_cols_array_2d(&MATRIX);
32 $mat3::IDENTITY,
33 $mat3::from_cols_array(&[
39 let identity = $mat3::IDENTITY;
41 assert_eq!($mat3::from_cols_array_2d(&IDENTITY), identity);
43 assert_eq!(identity, $mat3::default());
44 assert_eq!(identity, $mat3::from_diagonal($vec3::ONE));
[all …]
/external/deqp/data/gles31/shaders/es31/
Darrays_of_arrays.test400 mat3[3][2] a = mat3[3][2] ( mat3[2] ( mat3( in0.x, in0.y, in0.z,
403 mat3( in0.z, in0.x, -in0.y,
407 mat3[2] ( mat3( -in0.z, -in0.z, in0.z,
410 mat3( in0.x, in0.y, in0.z,
414 mat3[2] ( mat3( in0.z, in0.x, -in0.y,
417 mat3( -in0.z, -in0.z, in0.z,
421 mat3 a0 = a[0][0];
422 mat3 a1 = a[0][1];
423 mat3 a2 = a[2][1];
454 mat3 a = mat3( in0.x, in0.y, in0.z,
[all …]
/external/deqp/data/gles31/shaders/es32/
Darrays_of_arrays.test419 mat3[3][2] a = mat3[3][2] ( mat3[2] ( mat3( in0.x, in0.y, in0.z,
422 mat3( in0.z, in0.x, -in0.y,
426 mat3[2] ( mat3( -in0.z, -in0.z, in0.z,
429 mat3( in0.x, in0.y, in0.z,
433 mat3[2] ( mat3( in0.z, in0.x, -in0.y,
436 mat3( -in0.z, -in0.z, in0.z,
440 mat3 a0 = a[0][0];
441 mat3 a1 = a[0][1];
442 mat3 a2 = a[2][1];
473 mat3 a = mat3( in0.x, in0.y, in0.z,
[all …]
/external/deqp/data/gles31/shaders/gl45/
Darrays_of_arrays.test400 mat3[3][2] a = mat3[3][2] ( mat3[2] ( mat3( in0.x, in0.y, in0.z,
403 mat3( in0.z, in0.x, -in0.y,
407 mat3[2] ( mat3( -in0.z, -in0.z, in0.z,
410 mat3( in0.x, in0.y, in0.z,
414 mat3[2] ( mat3( in0.z, in0.x, -in0.y,
417 mat3( -in0.z, -in0.z, in0.z,
421 mat3 a0 = a[0][0];
422 mat3 a1 = a[0][1];
423 mat3 a2 = a[2][1];
454 mat3 a = mat3( in0.x, in0.y, in0.z,
[all …]
/external/eigen/unsupported/test/
Dcxx11_tensor_forced_eval.cpp28 Tensor<float, 2> mat3(3,3); in test_simple() local
29 mat3 = mat1; in test_simple()
35 mat3 = mat3.contract(mat2, dims).eval(); in test_simple()
37 VERIFY_IS_APPROX(mat3(0, 0), (m1*m2).eval()(0,0)); in test_simple()
38 VERIFY_IS_APPROX(mat3(0, 1), (m1*m2).eval()(0,1)); in test_simple()
39 VERIFY_IS_APPROX(mat3(0, 2), (m1*m2).eval()(0,2)); in test_simple()
40 VERIFY_IS_APPROX(mat3(1, 0), (m1*m2).eval()(1,0)); in test_simple()
41 VERIFY_IS_APPROX(mat3(1, 1), (m1*m2).eval()(1,1)); in test_simple()
42 VERIFY_IS_APPROX(mat3(1, 2), (m1*m2).eval()(1,2)); in test_simple()
43 VERIFY_IS_APPROX(mat3(2, 0), (m1*m2).eval()(2,0)); in test_simple()
[all …]
Dcxx11_tensor_map.cpp88 TensorMap<const Tensor<int, 2> > mat3(mat1.data(), 2, 3); in test_2d() local
91 VERIFY_IS_EQUAL(mat3.rank(), 2); in test_2d()
92 VERIFY_IS_EQUAL(mat3.size(), 6); in test_2d()
93 VERIFY_IS_EQUAL(mat3.dimension(0), 2); in test_2d()
94 VERIFY_IS_EQUAL(mat3.dimension(1), 3); in test_2d()
101 VERIFY_IS_EQUAL(mat3(0,0), 0); in test_2d()
102 VERIFY_IS_EQUAL(mat3(0,1), 1); in test_2d()
103 VERIFY_IS_EQUAL(mat3(0,2), 2); in test_2d()
104 VERIFY_IS_EQUAL(mat3(1,0), 3); in test_2d()
105 VERIFY_IS_EQUAL(mat3(1,1), 4); in test_2d()
[all …]
Dcxx11_tensor_contraction.cpp24 Tensor<float, 2, DataLayout> mat3(3, 2); in test_evals() local
28 mat3.setRandom(); in test_evals()
68 typedef TensorEvaluator<decltype(mat1.contract(mat3, dims6)), DefaultDevice> Evaluator3; in test_evals()
69 Evaluator3 eval3(mat1.contract(mat3, dims6), DefaultDevice()); in test_evals()
75 VERIFY_IS_APPROX(mat6(0,0), mat1(0,0)*mat3(0,0) + mat1(0,1)*mat3(1,0) + mat1(0,2)*mat3(2,0)); in test_evals()
76 VERIFY_IS_APPROX(mat6(0,1), mat1(0,0)*mat3(0,1) + mat1(0,1)*mat3(1,1) + mat1(0,2)*mat3(2,1)); in test_evals()
77 VERIFY_IS_APPROX(mat6(1,0), mat1(1,0)*mat3(0,0) + mat1(1,1)*mat3(1,0) + mat1(1,2)*mat3(2,0)); in test_evals()
78 VERIFY_IS_APPROX(mat6(1,1), mat1(1,0)*mat3(0,1) + mat1(1,1)*mat3(1,1) + mat1(1,2)*mat3(2,1)); in test_evals()
109 Tensor<float, 3, DataLayout> mat3(2, 2, 2); in test_multidims() local
110 mat3.setZero(); in test_multidims()
[all …]
Dcxx11_tensor_fixed_size.cpp156 TensorFixedSize<float, Sizes<2, 3> > mat3; in test_2d() local
158 mat3 = mat1.abs(); in test_2d()
161 VERIFY_IS_EQUAL((mat3.size()), 2*3); in test_2d()
165 VERIFY_IS_APPROX(mat3(0,0), 0.0f); in test_2d()
166 VERIFY_IS_APPROX(mat3(0,1), 1.0f); in test_2d()
167 VERIFY_IS_APPROX(mat3(0,2), 2.0f); in test_2d()
168 VERIFY_IS_APPROX(mat3(1,0), 3.0f); in test_2d()
169 VERIFY_IS_APPROX(mat3(1,1), 4.0f); in test_2d()
170 VERIFY_IS_APPROX(mat3(1,2), 5.0f); in test_2d()
202 TensorFixedSize<float, Sizes<2, 3, 7> > mat3; in test_3d() local
[all …]
Dcxx11_tensor_expr.cpp92 Tensor<float, 2> mat3(2,3); in test_2d() local
94 mat3 = mat1.abs(); in test_2d()
97 VERIFY_IS_APPROX(mat3(0,0), 0.0f); in test_2d()
98 VERIFY_IS_APPROX(mat3(0,1), 1.0f); in test_2d()
99 VERIFY_IS_APPROX(mat3(0,2), 2.0f); in test_2d()
100 VERIFY_IS_APPROX(mat3(1,0), 3.0f); in test_2d()
101 VERIFY_IS_APPROX(mat3(1,1), 4.0f); in test_2d()
102 VERIFY_IS_APPROX(mat3(1,2), 5.0f); in test_2d()
128 Tensor<float, 3> mat3(2,3,7); in test_3d() local
129 mat3 = mat1 + mat1; in test_3d()
[all …]
/external/skia/tests/sksl/folding/
DMatrixScalarNoOpFolding.glsl3 uniform mat3 testMatrix3x3;
24 mat3 m;
25 mat3 mm;
26 const mat3 z = mat3(0.0);
34 mm = mat3(0.0);
35 mm = mat3(0.0);
76 mat3 m;
77 mat3 mm;
78 const mat3 z = mat3(0.0);
79 const mat3 s = mat3(vec3(1.0), vec3(1.0), vec3(1.0));
[all …]
DMatrixNoOpFolding.glsl3 uniform mat3 testMatrix3x3;
9 mat3 m;
10 mat3 mm;
11 const mat3 z = mat3(0.0);
15 mm = mat3(0.0);
16 mm = mat3(0.0);
DMatrixFoldingES2.glsl40 _0_ok = _0_ok && mat3(unknownInput) == mat3(mat2(1.0));
41 _0_ok = _0_ok && mat3(9.0, 0.0, 0.0, 0.0, 9.0, 0.0, 0.0, 0.0, unknownInput) == mat3(mat2(9.0));
44 _0_ok = _0_ok && mat4(mat3(testMatrix2x2))[0] == vec4(1.0, 2.0, 0.0, 0.0);
45 _0_ok = _0_ok && mat4(mat3(testMatrix2x2))[1] == vec4(3.0, 4.0, 0.0, 0.0);
/external/eigen/test/
Dgeo_orthomethods.cpp37 Matrix3 mat3; in orthomethods_3() local
38 mat3 << v0.normalized(), in orthomethods_3()
41 VERIFY(mat3.isUnitary()); in orthomethods_3()
43 mat3.setRandom(); in orthomethods_3()
44 VERIFY_IS_APPROX(v0.cross(mat3*v1), -(mat3*v1).cross(v0)); in orthomethods_3()
45 VERIFY_IS_APPROX(v0.cross(mat3.lazyProduct(v1)), -(mat3.lazyProduct(v1)).cross(v0)); in orthomethods_3()
48 mat3.setRandom(); in orthomethods_3()
52 mcross = mat3.colwise().cross(vec3); in orthomethods_3()
53 VERIFY_IS_APPROX(mcross.col(i), mat3.col(i).cross(vec3)); in orthomethods_3()
55 …VERIFY_IS_MUCH_SMALLER_THAN((mat3.adjoint() * mat3.colwise().cross(vec3)).diagonal().cwiseAbs().su… in orthomethods_3()
[all …]
/external/deqp/external/vulkancts/data/vulkan/glsl/es310/
Darrays.test343 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
346 mat3( in0.z, in0.x, -in0.y,
349 mat3( -in0.z, -in0.z, in0.z,
353 mat3 a0 = a[0];
354 mat3 a1 = a[1];
355 mat3 a2 = a[2];
384 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
387 mat3( in0.z, in0.x, -in0.y,
390 mat3( -in0.z, -in0.z, in0.z,
394 mat3 a0 = a[0];
[all …]
/external/deqp/external/openglcts/data/gl33/
Darrays.test340 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
343 mat3( in0.z, in0.x, -in0.y,
346 mat3( -in0.z, -in0.z, in0.z,
350 mat3 a0 = a[0];
351 mat3 a1 = a[1];
352 mat3 a2 = a[2];
381 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
384 mat3( in0.z, in0.x, -in0.y,
387 mat3( -in0.z, -in0.z, in0.z,
391 mat3 a0 = a[0];
[all …]
/external/deqp-deps/glslang/Test/baseResults/
Dhlsl.matpack-pragma.frag.out18 … column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
19mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix …
28 … column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
29mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix …
37 0:31 mat3: direct index for structure (layout( column_major) temp 4X4 matrix of fl…
38 … column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
39mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix …
48 …ut( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3})
49mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix …
58 …ut( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3})
[all …]
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/
Dhlsl.matpack-pragma.frag.out18 … column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
19mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix …
28 … column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
29mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix …
37 0:31 mat3: direct index for structure (layout( column_major) temp 4X4 matrix of fl…
38 … column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
39mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix …
48 …ut( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3})
49mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix …
58 …ut( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3})
[all …]
/external/angle/third_party/vulkan-deps/glslang/src/Test/
Dvk.relaxed.stagelink.0.2.vert30 mat3 rotate;
72 mat3 worldForNormals;
73 mat3 camForNormals;
74 mat3 worldCamForNormals;
154 mat3 TDInstanceRotateMat(int index) {
157 mat3 m = mat3(1.0);
159 mat3 r;
208 mat3 TDInstanceMat3(int id) {
209 mat3 m = mat3(1.0);
212 mat3 TDInstanceMat3ForNorm(int id) {
[all …]
D120.frag142 mat3 r3 = matrixCompMult(m33, m33);
164 mat3 m3 = mat3(m4);
165 mat3 m3b1 = mat3(m4, v2); // ERROR, extra arg
166 mat3 m3b2 = mat3(m4, m4); // ERROR, extra arg
169 mat3 m3s = mat3(v2.x);
171 mat3 m3a1[2] = mat3[2](m3s, m3s);
172 mat3 m3a2[2] = mat3[2](m3s, m3s, m3s); // ERROR, too many args
/external/deqp-deps/glslang/Test/
Dvk.relaxed.stagelink.0.2.vert30 mat3 rotate;
72 mat3 worldForNormals;
73 mat3 camForNormals;
74 mat3 worldCamForNormals;
154 mat3 TDInstanceRotateMat(int index) {
157 mat3 m = mat3(1.0);
159 mat3 r;
208 mat3 TDInstanceMat3(int id) {
209 mat3 m = mat3(1.0);
212 mat3 TDInstanceMat3ForNorm(int id) {
[all …]
/external/deqp/data/gles3/shaders/
Darrays.test340 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
343 mat3( in0.z, in0.x, -in0.y,
346 mat3( -in0.z, -in0.z, in0.z,
350 mat3 a0 = a[0];
351 mat3 a1 = a[1];
352 mat3 a2 = a[2];
381 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
384 mat3( in0.z, in0.x, -in0.y,
387 mat3( -in0.z, -in0.z, in0.z,
391 mat3 a0 = a[0];
[all …]

12345678910>>...16