Lines Matching full:matrix
21 * \brief Shader matrix arithmetic tests.
30 * + matrix source
393 tcu::Matrix<T, Rows, Cols> matrixCompMult (const tcu::Matrix<T, Rows, Cols>& a, const tcu::Matrix<T, Rows, Cols>& b)
395 tcu::Matrix<T, Rows, Cols> retVal;
407 tcu::Matrix<T, Rows, Cols> negate (const tcu::Matrix<T, Rows, Cols>& mat)
409 tcu::Matrix<T, Rows, Cols> retVal;
421 tcu::Matrix<T, Rows, Cols> increment (const tcu::Matrix<T, Rows, Cols>& mat)
423 tcu::Matrix<T, Rows, Cols> retVal;
433 tcu::Matrix<T, Rows, Cols> decrement (const tcu::Matrix<T, Rows, Cols>& mat)
435 tcu::Matrix<T, Rows, Cols> retVal;
656 // Matrix-scalar.
661 // Matrix-vector.
666 // Vector-matrix.
671 // Matrix-matrix.
676 // Unary matrix
681 // Assignment matrix
715 void writeMatrixConstructor (std::ostream& str, const tcu::Matrix<float, Rows, Cols>& m)
787 DE_ASSERT(!isInDynMat0 || !isInDynMat1); // Only single dynamic matrix input is allowed.
982 // \todo [2012-02-14 pyry] Compute better values for matrix tests.
1079 : TestCaseGroup(context, "matrix", "Matrix Tests")
1097 { "add", "Matrix addition tests", OP_ADD, true },
1098 { "sub", "Matrix subtraction tests", OP_SUB, true },
1099 { "mul", "Matrix multiplication tests", OP_MUL, true },
1100 { "div", "Matrix division tests", OP_DIV, true },
1101 { "matrixcompmult", "Matrix component-wise multiplication tests", OP_COMP_MUL, false },
1102 { "unary_addition", "Matrix unary addition tests", OP_UNARY_PLUS, false },
1103 { "negation", "Matrix negation tests", OP_NEGATION, false },
1104 { "pre_increment", "Matrix prefix increment tests", OP_PRE_INCREMENT, false },
1105 { "pre_decrement", "Matrix prefix decrement tests", OP_PRE_DECREMENT, false },
1106 { "post_increment", "Matrix postfix increment tests", OP_POST_INCREMENT, false },
1107 { "post_decrement", "Matrix postfix decrement tests", OP_POST_DECREMENT, false },
1108 { "add_assign", "Matrix add into tests", OP_ADD_INTO, false },
1109 { "sub_assign", "Matrix subtract from tests", OP_SUBTRACT_FROM, false },
1110 { "mul_assign", "Matrix multiply into tests", OP_MULTIPLY_INTO, false },
1111 { "div_assign", "Matrix divide into tests", OP_DIVIDE_INTO, false },
1122 { "const", "Constant matrix input", INPUTTYPE_CONST },
1123 { "uniform", "Uniform matrix input", INPUTTYPE_UNIFORM },
1124 { "dynamic", "Dynamic matrix input", INPUTTYPE_DYNAMIC }
1128 { "dynamic", "Dynamic matrix input", INPUTTYPE_DYNAMIC }
1172 // Matrix-scalar \note For div cases we use uniform input.
1174 opGroup->addChild(new ShaderMatrixCase(m_context, (baseName + "float_vertex").c_str(), "Matrix-scalar case", matIn, scalarIn, op, true));
1175 opGroup->addChild(new ShaderMatrixCase(m_context, (baseName + "float_fragment").c_str(), "Matrix-scalar case", matIn, scalarIn, op, false));
1180 // Matrix-vector.
1184 opGroup->addChild(new ShaderMatrixCase(m_context, (baseName + getDataTypeName(vecType) + "_vertex").c_str(), "Matrix-vector case", matIn, vecIn, op, true));
1185 opGroup->addChild(new ShaderMatrixCase(m_context, (baseName + getDataTypeName(vecType) + "_fragment").c_str(), "Matrix-vector case", matIn, vecIn, op, false));
1187 // Vector-matrix.
1189 opGroup->addChild(new ShaderMatrixCase(m_context, (vecMatName + "_vertex").c_str(), "Vector-matrix case", vecIn, matIn, op, true));
1190 opGroup->addChild(new ShaderMatrixCase(m_context, (vecMatName + "_fragment").c_str(), "Vector-matrix case", vecIn, matIn, op, false));
1195 // Matrix-matrix.
1197 opGroup->addChild(new ShaderMatrixCase(m_context, (baseName + matTypeName + "_vertex").c_str(), "Matrix-matrix case", matIn, otherMatIn, op, true));
1198 opGroup->addChild(new ShaderMatrixCase(m_context, (baseName + matTypeName + "_fragment").c_str(), "Matrix-matrix case", matIn, otherMatIn, op, false));
1203 // op matrix
1205 opGroup->addChild(new ShaderMatrixCase(m_context, (baseName + "vertex").c_str(), "Matrix case", matIn, voidInput, op, true));
1206 opGroup->addChild(new ShaderMatrixCase(m_context, (baseName + "fragment").c_str(), "Matrix case", matIn, voidInput, op, false));
1212 opGroup->addChild(new ShaderMatrixCase(m_context, (baseName + "vertex").c_str(), "Matrix assignment case", matIn, otherMatIn, op, true));
1213 opGroup->addChild(new ShaderMatrixCase(m_context, (baseName + "fragment").c_str(), "Matrix assignment case", matIn, otherMatIn, op, false));