Home | History | Annotate | Download | only in gl

Lines Matching defs:MATRIX

342  *  matrix types.
779 * support. For matrix types, total amount of values accessible for the type will be
896 /** Returns number of columns user-specified matrix variable type describes.
1119 /** Returns variable type of a matrix constructed by multiplying two matrices.
1121 * @param type_matrix_a L-side matrix type.
1122 * @param type_matrix_b R-side matrix type.
1254 /** Returns variable type of a transposed matrix of user-specified variable type.
1256 * @param type Variable type of the matrix to be transposed.
1258 * @return Transposed matrix variable type.
1296 TCU_FAIL("Unrecognized double-precision matrix variable type.");
1511 matrix type.
1515 * @return true if the variable type describes a matrix, false otherwise.
2115 * matrix uniform.
2489 /* Make sure we only use glUniformMatrix*() functions with matrix uniforms,
3666 /* Get matrix stride of uniform */
3672 TCU_FAIL("Unifom has invalid matrix stride");
3683 TCU_FAIL("Unifom has invalid matrix stride");
4979 /* Get matrix stride of uniform */
4985 TCU_FAIL("Unifom has invalid matrix stride");
7224 /* Set up swizzle matrix */
10058 * double-precision scalar/matrix values as supported by the tested GL implementation.
10600 /* Matrix variable types can be defined by a combination of non-matrix variable types OR
10601 * a single matrix variable type.
10609 /* Iterate through all known matrix types. All the types can be used
10610 * as a constructor, assuming only one value is used to define new matrix's
10617 * than one constructor argument if the only argument is a matrix type, mark the node
10631 } /* for (all matrix types) */
10632 } /* if (current node's type is a matrix) */
10634 /* Now for a combination of non-matrix variable types.. */
11134 /** Performs a matrix multiplication, given types of l-side and r-side matrices and stores the result
11137 * @param matrix_a_type Type of the l-side matrix.
11138 * @param matrix_a_data Row-ordered data of l-side matrix.
11139 * @param matrix_b_type Type of the r-side matrix.
11140 * @param matrix_b_data Row-ordered data of r-side matrix.
11173 tcu::Matrix<double, 2, 3> matrix_a(&matrix_a_data[0]);
11174 tcu::Matrix<double, 3, 2> matrix_a_transposed;
11175 tcu::Matrix<double, 3, 2> matrix_b(&matrix_b_data[0]);
11176 tcu::Matrix<double, 2, 3> matrix_b_transposed;
11177 tcu::Matrix<double, 3, 3> result;
11191 tcu::Matrix<double, 2, 4> matrix_a(&matrix_a_data[0]);
11192 tcu::Matrix<double, 4, 2> matrix_a_transposed;
11193 tcu::Matrix<double, 4, 2> matrix_b(&matrix_b_data[0]);
11194 tcu::Matrix<double, 2, 4> matrix_b_transposed;
11195 tcu::Matrix<double, 4, 4> result;
11209 tcu::Matrix<double, 3, 3> matrix_a(&matrix_a_data[0]);
11210 tcu::Matrix<double, 3, 3> matrix_b(&matrix_b_data[0]);
11211 tcu::Matrix<double, 3, 3> result;
11225 tcu::Matrix<double, 3, 2> matrix_a(&matrix_a_data[0]);
11226 tcu::Matrix<double, 2, 3> matrix_a_transposed;
11227 tcu::Matrix<double, 2, 3> matrix_b(&matrix_b_data[0]);
11228 tcu::Matrix<double, 3, 2> matrix_b_transposed;
11229 tcu::Matrix<double, 2, 2> result;
11243 tcu::Matrix<double, 3, 4> matrix_a(&matrix_a_data[0]);
11244 tcu::Matrix<double, 4, 3> matrix_a_transposed;
11245 tcu::Matrix<double, 4, 3> matrix_b(&matrix_b_data[0]);
11246 tcu::Matrix<double, 3, 4> matrix_b_transposed;
11247 tcu::Matrix<double, 4, 4> result;
11261 tcu::Matrix<double, 4, 4> matrix_a(&matrix_a_data[0]);
11262 tcu::Matrix<double, 4, 4> matrix_b(&matrix_b_data[0]);
11263 tcu::Matrix<double, 4, 4> result;
11277 tcu::Matrix<double, 4, 2> matrix_a(&matrix_a_data[0]);
11278 tcu::Matrix<double, 2, 4> matrix_a_transposed;
11279 tcu::Matrix<double, 2, 4> matrix_b(&matrix_b_data[0]);
11280 tcu::Matrix<double, 4, 2> matrix_b_transposed;
11281 tcu::Matrix<double, 2, 2> result;
11295 tcu::Matrix<double, 4, 3> matrix_a(&matrix_a_data[0]);
11296 tcu::Matrix<double, 3, 4> matrix_a_transposed;
11297 tcu::Matrix<double, 3, 4> matrix_b(&matrix_b_data[0]);
11298 tcu::Matrix<double, 4, 3> matrix_b_transposed;
11299 tcu::Matrix<double, 3, 3> result;
11311 TCU_FAIL("Unrecognized matrix A type");
11767 * reference values separately for each matrix
11798 /* Matrix multiplication */
11813 << " matrix multiplication was incorrect; expected:(";
11847 } /* if (dealing with matrix multiplication) */
12006 << "Invalid value was reported for matrix variable type, for which "
12103 class typeInfo<tcu::Matrix<glw::GLdouble, 2, 2> >
12110 class typeInfo<tcu::Matrix<glw::GLdouble, 3, 2> >
12117 class typeInfo<tcu::Matrix<glw::GLdouble, 4, 2> >
12124 class typeInfo<tcu::Matrix<glw::GLdouble, 3, 3> >
12131 class typeInfo<tcu::Matrix<glw::GLdouble, 2, 3> >
12138 class typeInfo<tcu::Matrix<glw::GLdouble, 4, 3> >
12145 class typeInfo<tcu::Matrix<glw::GLdouble, 4, 4> >
12152 class typeInfo<tcu::Matrix<glw::GLdouble, 2, 4> >
12159 class typeInfo<tcu::Matrix<glw::GLdouble, 3, 4> >
12175 static tcu::Matrix<glw::GLdouble, Size, Size> cofactors(const tcu::Matrix<glw::GLdouble, Size, Size>& matrix);
12184 static T determinant(const tcu::Matrix<T, 2, 2>& mat);
12187 static T determinant(const tcu::Matrix<T, 3, 3>& mat);
12190 static T determinant(const tcu::Matrix<T, 4, 4>& mat);
12193 static tcu::Matrix<glw::GLdouble, Size - 1, Size - 1> eliminate(const tcu::Matrix<glw::GLdouble, Size, Size>& matrix,
12216 static tcu::Matrix<glw::GLdouble, Size, Size> inverse(const tcu::Matrix<glw::GLdouble, Size, Size>& matrix);
12242 static glw::GLdouble minor_impl(const tcu::Matrix<glw::GLdouble, Size, Size>& matrix, glw::GLuint column,
12262 static tcu::Matrix<glw::GLdouble, Rows, Cols> outerProduct(const tcu::Vector<glw::GLdouble, Rows>& left,
12283 static tcu::Matrix<T, Cols, Rows> transpose(const tcu::Matrix<T, Rows, Cols>& matrix);
12297 static tcu::Matrix<glw::GLdouble, Size, Size> cofactors(const tcu::Matrix<glw::GLdouble, Size, Size>& matrix)
12299 tcu::Matrix<glw::GLdouble, Size, Size> result;
12305 const glw::GLdouble minor_value = minor_impl(matrix, c, r);
12363 static T determinant(const tcu::Matrix<T, 2, 2>& mat)
12369 static T determinant(const tcu::Matrix<T, 3, 3>& mat)
12375 static T determinant(const tcu::Matrix<T, 4, 4>& mat)
12382 static tcu::Matrix<glw::GLdouble, Size - 1, Size - 1> eliminate(const tcu::Matrix<glw::GLdouble, Size, Size>& matrix,
12385 tcu::Matrix<glw::GLdouble, Size - 1, Size - 1> result;
12406 result(r + r_offset, c + c_offset) = matrix(r, c);
12451 static tcu::Matrix<glw::GLdouble, Size, Size> inverse(const tcu::Matrix<glw::GLdouble, Size, Size>& matrix)
12453 const tcu::Matrix<glw::GLdouble, Size, Size> cof = cofactors(matrix);
12454 const tcu::Matrix<glw::GLdouble, Size, Size> adjugate = tcu::transpose(cof);
12455 const glw::GLdouble det = determinant(matrix);
12458 tcu::Matrix<glw::GLdouble, Size, Size> result = adjugate * inv_det;
12515 static glw::GLdouble minor_impl(const tcu::Matrix<glw::GLdouble, Size, Size>& matrix, glw::GLuint column,
12518 tcu::Matrix<glw::GLdouble, Size - 1, Size - 1> eliminated = eliminate(matrix, column, row);
12524 glw::GLdouble minor_impl<2>(const tcu::Matrix<glw::GLdouble, 2, 2>& matrix, glw::GLuint column, glw::GLuint row)
12529 return matrix(r, c);
12569 static tcu::Matrix<glw::GLdouble, Rows, Cols> outerProduct(const tcu::Vector<glw::GLdouble, Rows>& left,
12572 tcu::Matrix<glw::GLdouble, Rows, 1> left_mat;
12573 tcu::Matrix<glw::GLdouble, 1, Cols> right_mat;
12574 tcu::Matrix<glw::GLdouble, Rows, Cols> result;
12682 static tcu::Matrix<T, Cols, Rows> transpose(const tcu::Matrix<T, Rows, Cols>& matrix)
12684 tcu::Matrix<T, Cols, Rows> result = tcu::transpose(matrix);
12835 * The test should use 1024 different scalar/vector/matrix argument
12897 MATRIX,
13020 /** Place tcu::Matrix data from <in> into <buffer>
13026 class pack<tcu::Matrix<glw::GLdouble, Rows, Cols> >
13029 static void set(glw::GLvoid* buffer, const tcu::Matrix<glw::GLdouble, Rows, Cols>& in)
13060 /** Get tcu::Matrix data from <buffer>
13066 class unpack<tcu::Matrix<glw::GLdouble, Rows, Cols> >
13069 static void get(const glw::GLvoid* buffer, tcu::Matrix<glw::GLdouble, Rows, Cols>& out)
13815 m_general_type = MATRIX;
13920 typedef tcu::Matrix<glw::GLdouble, 2, 2> DMat2;
13921 typedef tcu::Matrix<glw::GLdouble, 3, 2> DMat2x3;
13922 typedef tcu::Matrix<glw::GLdouble, 4, 2> DMat2x4;
13923 typedef tcu::Matrix<glw::GLdouble, 2, 3> DMat3x2;
13924 typedef tcu::Matrix<glw::GLdouble, 3, 3> DMat3;
13925 typedef tcu::Matrix<glw::GLdouble, 4, 3> DMat3x4;
13926 typedef tcu::Matrix<glw::GLdouble, 2, 4> DMat4x2;
13927 typedef tcu::Matrix<glw::GLdouble, 3, 4> DMat4x3;
13928 typedef tcu::Matrix<glw::GLdouble, 4, 4> DMat4;
14631 /** Get gl.uniform* that match type of argument. Assumes that type is matrix of double.
14839 /* SCALAR, VECTOR, MATRIX */