Home
last modified time | relevance | path

Searched refs:Mat4 (Results 1 – 25 of 75) sorted by relevance

123

/third_party/skia/third_party/externals/angle2/src/common/
Dmatrix_utils.cpp14 Mat4::Mat4() : Mat4(1.f, 0.f, 0.f, 0.f, 0.f, 1.f, 0.f, 0.f, 0.f, 0.f, 1.f, 0.f, 0.f, 0.f, 0.f, 1.f) in Mat4() function in angle::Mat4
17 Mat4::Mat4(const Matrix<float> generalMatrix) : Matrix(std::vector<float>(16, 0), 4, 4) in Mat4() function in angle::Mat4
30 Mat4::Mat4(const std::vector<float> &elements) : Matrix(elements, 4) {} in Mat4() function in angle::Mat4
32 Mat4::Mat4(const float *elements) : Matrix(elements, 4) {} in Mat4() function in angle::Mat4
34 Mat4::Mat4(float m00, in Mat4() function in angle::Mat4
71 Mat4 Mat4::Rotate(float angle, const Vector3 &axis) in Rotate()
111 return Mat4(r00, r01, r02, r03, r10, r11, r12, r13, r20, r21, r22, r23, r30, r31, r32, r33); in Rotate()
115 Mat4 Mat4::Translate(const Vector3 &t) in Translate()
137 return Mat4(r00, r01, r02, r03, r10, r11, r12, r13, r20, r21, r22, r23, r30, r31, r32, r33); in Translate()
141 Mat4 Mat4::Scale(const Vector3 &s) in Scale()
[all …]
Dmatrix_utils_unittest.cpp61 void CheckMatrixCloseToGolden(float *golden, const Mat4 &m) in CheckMatrixCloseToGolden()
71 void CheckMatrixCloseToGolden(const std::vector<float> &golden, const Mat4 &m) in CheckMatrixCloseToGolden()
240 Mat4 b(elements); in TEST()
241 Mat4 bVec(elementsVector); in TEST()
247 b = Mat4(); in TEST()
251 Mat4 c(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, in TEST()
253 Mat4 d(elements); in TEST()
254 Mat4 e(Matrix<float>(elements, 4)); in TEST()
275 Mat4 r = Mat4::Rotate(0.f, Vector3(0.f, 0.f, 1.f)); in TEST()
276 Mat4 golden(elementsExpected); in TEST()
[all …]
Dmatrix_utils.h386 class Mat4 : public Matrix<float>
389 Mat4();
390 Mat4(const Matrix<float> generalMatrix);
391 Mat4(const std::vector<float> &elements);
392 Mat4(const float *elements);
393 Mat4(float m00,
410 static Mat4 Rotate(float angle, const Vector3 &axis);
411 static Mat4 Translate(const Vector3 &t);
412 static Mat4 Scale(const Vector3 &s);
413 static Mat4 Frustum(float l, float r, float b, float t, float n, float f);
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dmatrix_utils.cpp14 Mat4::Mat4() : Mat4(1.f, 0.f, 0.f, 0.f, 0.f, 1.f, 0.f, 0.f, 0.f, 0.f, 1.f, 0.f, 0.f, 0.f, 0.f, 1.f) in Mat4() function in angle::Mat4
17 Mat4::Mat4(const Matrix<float> generalMatrix) : Matrix(std::vector<float>(16, 0), 4, 4) in Mat4() function in angle::Mat4
30 Mat4::Mat4(const std::vector<float> &elements) : Matrix(elements, 4) {} in Mat4() function in angle::Mat4
32 Mat4::Mat4(const float *elements) : Matrix(elements, 4) {} in Mat4() function in angle::Mat4
34 Mat4::Mat4(float m00, in Mat4() function in angle::Mat4
71 Mat4 Mat4::Rotate(float angle, const Vector3 &axis) in Rotate()
111 return Mat4(r00, r01, r02, r03, r10, r11, r12, r13, r20, r21, r22, r23, r30, r31, r32, r33); in Rotate()
115 Mat4 Mat4::Translate(const Vector3 &t) in Translate()
137 return Mat4(r00, r01, r02, r03, r10, r11, r12, r13, r20, r21, r22, r23, r30, r31, r32, r33); in Translate()
141 Mat4 Mat4::Scale(const Vector3 &s) in Scale()
[all …]
Dmatrix_utils_unittest.cpp61 void CheckMatrixCloseToGolden(float *golden, const Mat4 &m) in CheckMatrixCloseToGolden()
71 void CheckMatrixCloseToGolden(const std::vector<float> &golden, const Mat4 &m) in CheckMatrixCloseToGolden()
240 Mat4 b(elements); in TEST()
241 Mat4 bVec(elementsVector); in TEST()
247 b = Mat4(); in TEST()
251 Mat4 c(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, in TEST()
253 Mat4 d(elements); in TEST()
254 Mat4 e(Matrix<float>(elements, 4)); in TEST()
275 Mat4 r = Mat4::Rotate(0.f, Vector3(0.f, 0.f, 1.f)); in TEST()
276 Mat4 golden(elementsExpected); in TEST()
[all …]
Dmatrix_utils.h385 class Mat4 : public Matrix<float>
388 Mat4();
389 Mat4(const Matrix<float> generalMatrix);
390 Mat4(const std::vector<float> &elements);
391 Mat4(const float *elements);
392 Mat4(float m00,
409 static Mat4 Rotate(float angle, const Vector3 &axis);
410 static Mat4 Translate(const Vector3 &t);
411 static Mat4 Scale(const Vector3 &s);
412 static Mat4 Frustum(float l, float r, float b, float t, float n, float f);
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/gles1/
DMatrixBuiltinsTest.cpp42 angle::Mat4 testMatrix = angle::Mat4::Rotate(angle, angle::Vector3(x, y, z)); in TEST_P()
47 angle::Mat4 outputMatrix; in TEST_P()
61 angle::Mat4 testMatrix = angle::Mat4::Translate(angle::Vector3(x, y, z)); in TEST_P()
68 angle::Mat4 outputMatrix; in TEST_P()
82 angle::Mat4 testMatrix = angle::Mat4::Scale(angle::Vector3(x, y, z)); in TEST_P()
89 angle::Mat4 outputMatrix; in TEST_P()
107 angle::Mat4 testMatrix = angle::Mat4::Frustum(l, r, b, t, n, f); in TEST_P()
112 angle::Mat4 outputMatrix; in TEST_P()
129 angle::Mat4 testMatrix = angle::Mat4::Ortho(l, r, b, t, n, f); in TEST_P()
134 angle::Mat4 outputMatrix; in TEST_P()
DMatrixMultTest.cpp37 angle::Mat4 testMatrix; in TEST_P()
38 angle::Mat4 outputMatrix; in TEST_P()
46 EXPECT_EQ(angle::Mat4(), outputMatrix); in TEST_P()
54 angle::Mat4 testMatrix = angle::Mat4::Translate(angle::Vector3(1.0f, 0.0f, 0.0f)); in TEST_P()
56 angle::Mat4 outputMatrix; in TEST_P()
67 EXPECT_EQ(angle::Mat4::Translate(angle::Vector3(2.0f, 0.0f, 0.0f)), outputMatrix); in TEST_P()
74 EXPECT_EQ(angle::Mat4(), outputMatrix); in TEST_P()
DMatrixLoadTest.cpp37 angle::Mat4 testMatrix(0.0f, 4.0f, 8.0f, 12.0f, 1.0f, 5.0f, 9.0f, 10.0f, 2.0f, 6.0f, 10.0f, in TEST_P()
40 angle::Mat4 outputMatrix; in TEST_P()
56 angle::Mat4 testMatrix(0.0f, 4.0f, 8.0f, 12.0f, 1.0f, 5.0f, 9.0f, 10.0f, 2.0f, 6.0f, 10.0f, in TEST_P()
59 angle::Mat4 outputMatrix; in TEST_P()
73 EXPECT_EQ(angle::Mat4(), outputMatrix); in TEST_P()
79 angle::Mat4 testMatrix(0.0f, 4.0f, 8.0f, 12.0f, 1.0f, 5.0f, 9.0f, 10.0f, 2.0f, 6.0f, 10.0f, in TEST_P()
81 angle::Mat4 outputMatrix; in TEST_P()
96 EXPECT_EQ(angle::Mat4(), outputMatrix); in TEST_P()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/gles1/
DMatrixBuiltinsTest.cpp42 angle::Mat4 testMatrix = angle::Mat4::Rotate(angle, angle::Vector3(x, y, z)); in TEST_P()
47 angle::Mat4 outputMatrix; in TEST_P()
61 angle::Mat4 testMatrix = angle::Mat4::Translate(angle::Vector3(x, y, z)); in TEST_P()
68 angle::Mat4 outputMatrix; in TEST_P()
82 angle::Mat4 testMatrix = angle::Mat4::Scale(angle::Vector3(x, y, z)); in TEST_P()
89 angle::Mat4 outputMatrix; in TEST_P()
107 angle::Mat4 testMatrix = angle::Mat4::Frustum(l, r, b, t, n, f); in TEST_P()
112 angle::Mat4 outputMatrix; in TEST_P()
129 angle::Mat4 testMatrix = angle::Mat4::Ortho(l, r, b, t, n, f); in TEST_P()
134 angle::Mat4 outputMatrix; in TEST_P()
DMatrixMultTest.cpp37 angle::Mat4 testMatrix; in TEST_P()
38 angle::Mat4 outputMatrix; in TEST_P()
46 EXPECT_EQ(angle::Mat4(), outputMatrix); in TEST_P()
54 angle::Mat4 testMatrix = angle::Mat4::Translate(angle::Vector3(1.0f, 0.0f, 0.0f)); in TEST_P()
56 angle::Mat4 outputMatrix; in TEST_P()
67 EXPECT_EQ(angle::Mat4::Translate(angle::Vector3(2.0f, 0.0f, 0.0f)), outputMatrix); in TEST_P()
74 EXPECT_EQ(angle::Mat4(), outputMatrix); in TEST_P()
DMatrixLoadTest.cpp37 angle::Mat4 testMatrix(0.0f, 4.0f, 8.0f, 12.0f, 1.0f, 5.0f, 9.0f, 10.0f, 2.0f, 6.0f, 10.0f, in TEST_P()
40 angle::Mat4 outputMatrix; in TEST_P()
56 angle::Mat4 testMatrix(0.0f, 4.0f, 8.0f, 12.0f, 1.0f, 5.0f, 9.0f, 10.0f, 2.0f, 6.0f, 10.0f, in TEST_P()
59 angle::Mat4 outputMatrix; in TEST_P()
73 EXPECT_EQ(angle::Mat4(), outputMatrix); in TEST_P()
79 angle::Mat4 testMatrix(0.0f, 4.0f, 8.0f, 12.0f, 1.0f, 5.0f, 9.0f, 10.0f, 2.0f, 6.0f, 10.0f, in TEST_P()
81 angle::Mat4 outputMatrix; in TEST_P()
96 EXPECT_EQ(angle::Mat4(), outputMatrix); in TEST_P()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DContext_gles_1_0.cpp21 angle::Mat4 FixedMatrixToMat4(const GLfixed *m) in FixedMatrixToMat4()
23 angle::Mat4 matrixAsFloat; in FixedMatrixToMat4()
170 mState.gles1().multMatrix(angle::Mat4::Frustum(l, r, b, t, n, f)); in frustumf()
175 mState.gles1().multMatrix(angle::Mat4::Frustum(FixedToFloat(l), FixedToFloat(r), in frustumx()
319 mState.gles1().loadMatrix(angle::Mat4()); in loadIdentity()
324 mState.gles1().loadMatrix(angle::Mat4(m)); in loadMatrixf()
371 mState.gles1().multMatrix(angle::Mat4(m)); in multMatrixf()
417 mState.gles1().multMatrix(angle::Mat4::Ortho(left, right, bottom, top, zNear, zFar)); in orthof()
422 mState.gles1().multMatrix(angle::Mat4::Ortho(FixedToFloat(l), FixedToFloat(r), FixedToFloat(b), in orthox()
480 mState.gles1().multMatrix(angle::Mat4::Rotate(angle, angle::Vector3(x, y, z))); in rotatef()
[all …]
DGLES1State.cpp127 mModelviewMatrices.push_back(angle::Mat4()); in initialize()
128 mProjectionMatrices.push_back(angle::Mat4()); in initialize()
132 stack.push_back(angle::Mat4()); in initialize()
289 const angle::Mat4 &GLES1State::getModelviewMatrix() const in getModelviewMatrix()
310 void GLES1State::loadMatrix(const angle::Mat4 &m) in loadMatrix()
316 void GLES1State::multMatrix(const angle::Mat4 &m) in multMatrix()
319 angle::Mat4 currentMatrix = currentMatrixStack().back(); in multMatrix()
DGLES1State.h176 using MatrixStack = angle::FixedVector<angle::Mat4, Caps::GlobalMatrixStackDepth>;
180 const angle::Mat4 &getModelviewMatrix() const;
182 void loadMatrix(const angle::Mat4 &m);
183 void multMatrix(const angle::Mat4 &m);
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DContext_gles_1_0.cpp21 angle::Mat4 FixedMatrixToMat4(const GLfixed *m) in FixedMatrixToMat4()
23 angle::Mat4 matrixAsFloat; in FixedMatrixToMat4()
173 mState.gles1().multMatrix(angle::Mat4::Frustum(l, r, b, t, n, f)); in frustumf()
178 mState.gles1().multMatrix(angle::Mat4::Frustum(ConvertFixedToFloat(l), ConvertFixedToFloat(r), in frustumx()
334 mState.gles1().loadMatrix(angle::Mat4()); in loadIdentity()
339 mState.gles1().loadMatrix(angle::Mat4(m)); in loadMatrixf()
386 mState.gles1().multMatrix(angle::Mat4(m)); in multMatrixf()
433 mState.gles1().multMatrix(angle::Mat4::Ortho(left, right, bottom, top, zNear, zFar)); in orthof()
438 mState.gles1().multMatrix(angle::Mat4::Ortho(ConvertFixedToFloat(l), ConvertFixedToFloat(r), in orthox()
496 mState.gles1().multMatrix(angle::Mat4::Rotate(angle, angle::Vector3(x, y, z))); in rotatef()
[all …]
DGLES1State.cpp129 mModelviewMatrices.push_back(angle::Mat4()); in initialize()
130 mProjectionMatrices.push_back(angle::Mat4()); in initialize()
134 stack.push_back(angle::Mat4()); in initialize()
298 const angle::Mat4 &GLES1State::getModelviewMatrix() const in getModelviewMatrix()
324 void GLES1State::loadMatrix(const angle::Mat4 &m) in loadMatrix()
330 void GLES1State::multMatrix(const angle::Mat4 &m) in multMatrix()
333 angle::Mat4 currentMatrix = currentMatrixStack().back(); in multMatrix()
DGLES1State.h177 using MatrixStack = angle::FixedVector<angle::Mat4, Caps::GlobalMatrixStackDepth>;
182 const angle::Mat4 &getModelviewMatrix() const;
184 void loadMatrix(const angle::Mat4 &m);
185 void multMatrix(const angle::Mat4 &m);
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fTextureUnitTests.cpp51 using tcu::Mat4;
185 static Mat4 matExtend3To4 (const Mat3& mat) in matExtend3To4()
187 Mat4 res; in matExtend3To4()
287 static tcu::Vector<tcu::Vec2, 3> calculateLodDerivateParts (const Mat4& transformation) in calculateLodDerivateParts()
353 vector<Mat4> m_transformations;
460 Mat4 transformation = matExtend3To4(Mat3(tempOffsetData) * in MultiTexShader()
491Mat4 finalTrans = matExtend3To4(Mat3(s_cubeTransforms[faceNdx]) * planarTrans); // Final transfor… in MultiTexShader()
492 Mat4 planarTrans4x4 = matExtend3To4(planarTrans); in MultiTexShader()
509 Mat4 transformation(transData); in MultiTexShader()
533 transformation = transformation * Mat4(zScaleTransfData) * Mat4(zTranslationTransfData); in MultiTexShader()
[all …]
Des3fShaderMatrixTests.cpp76 using tcu::Mat4;
277 DECLARE_TYPE_TRAIT(TYPE_FLOAT_MAT4, tcu::Mat4);
510 … tcu::Mat4 getInputValue<INPUTTYPE_CONST, TYPE_FLOAT_MAT4> (const ShaderEvalContext& evalCtx, int… in getInputValue()
596 template <> inline tcu::Mat4 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_MAT4> (const ShaderEvalCon… in getInputValue()
599 tcu::Mat4 m; in getInputValue()
620 inline tcu::Vec3 reduceToVec3 (const tcu::Mat4& value) { return value.getColumn(0).swizzle(0,1,2) … in reduceToVec3()
826 return Mat4(result); in inverse()
1547 case TYPE_FLOAT_MAT4: writeMatrixConstructor<4, 4>(op, Mat4(s_constInMat4x4[inNdx])); break; in init()
1655 m_userAttribTransforms[attribNdx] = Mat4(0.0f); in init()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fShaderMatrixTests.cpp67 using tcu::Mat4;
96 static const Mat4 s_constInMat4[2] = { tcu::translationMatrix(tcu::Vec3(0.2f, -0.3f, 0.15f)), tcu::
162 DECLARE_TYPE_TRAIT(TYPE_FLOAT_MAT4, tcu::Mat4);
344 template <> inline tcu::Mat4 getInputValue<INPUTTYPE_CONST, TYPE_FLOAT_MAT4> (const ShaderEvalCont… in getInputValue()
370 template <> inline tcu::Mat4 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_MAT4> (const ShaderEvalCon… in getInputValue()
373 tcu::Mat4 m; in getInputValue()
388 inline tcu::Vec3 reduceToVec3 (const tcu::Mat4& value) { return value.getColumn(0).swizzle(0,1,2) +… in reduceToVec3()
880 case TYPE_FLOAT_MAT4: writeMatrixConstructor<4, 4>(op, Mat4(s_constInMat4[inNdx])); break; in init()
986 m_userAttribTransforms[attribNdx] = Mat4(0.0f); in init()
/third_party/vk-gl-cts/modules/gles3/scripts/
Dgen-swizzles.py207 inMat4 = [Mat4(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0),
208Mat4(6.5, 12.5, -0.75, 9.975, 32.0, 1.0/48.0, -8.425, -6.542, 1.0/8.0, 1.0/16.0, 1.0/32.0, 1.0/6…
/third_party/vk-gl-cts/modules/gles2/scripts/
Dgen-swizzles.py203 inMat4 = [Mat4(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0),
204Mat4(6.5, 12.5, -0.75, 9.975, 32.0, 1.0/48.0, -8.425, -6.542, 1.0/8.0, 1.0/16.0, 1.0/32.0, 1.0/6…
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
DvktShaderRenderMatrixTests.cpp71 using tcu::Mat4;
271 DECLARE_TYPE_TRAIT(TYPE_FLOAT_MAT4, tcu::Mat4);
504 … tcu::Mat4 getInputValue<INPUTTYPE_CONST, TYPE_FLOAT_MAT4> (const ShaderEvalContext& evalCtx, int… in getInputValue()
590 template <> inline tcu::Mat4 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_MAT4> (const ShaderEvalCon… in getInputValue()
593 tcu::Mat4 m; in getInputValue()
614 inline tcu::Vec3 reduceToVec3 (const tcu::Mat4& value) { return value.getColumn(0).swizzle(0,1,2) … in reduceToVec3()
820 return Mat4(result); in inverse()
1421 m_userAttribTransforms[attribNdx] = Mat4(0.0f); in ShaderMatrixInstance()
1486 Mat4 result; in addMatrixUniform()
1556 Mat4 matrix = Mat4(dataPtr); in addMatrixUniform()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderMatrixTests.cpp71 using tcu::Mat4;
271 DECLARE_TYPE_TRAIT(TYPE_FLOAT_MAT4, tcu::Mat4);
504 … tcu::Mat4 getInputValue<INPUTTYPE_CONST, TYPE_FLOAT_MAT4> (const ShaderEvalContext& evalCtx, int… in getInputValue()
590 template <> inline tcu::Mat4 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_MAT4> (const ShaderEvalCon… in getInputValue()
593 tcu::Mat4 m; in getInputValue()
614 inline tcu::Vec3 reduceToVec3 (const tcu::Mat4& value) { return value.getColumn(0).swizzle(0,1,2) … in reduceToVec3()
820 return Mat4(result); in inverse()
1421 m_userAttribTransforms[attribNdx] = Mat4(0.0f); in ShaderMatrixInstance()
1486 Mat4 result; in addMatrixUniform()
1556 Mat4 matrix = Mat4(dataPtr); in addMatrixUniform()
[all …]

123