Lines Matching refs:basicType
377 glu::DataType basicType = type.getBasicType();
379 if (glu::isDataTypeMatrix(basicType))
382 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType)
383 : glu::getDataTypeMatrixNumRows(basicType);
389 return getDataTypeByteAlignment(basicType);
418 glu::DataType basicType = type.getBasicType();
420 if (glu::isDataTypeMatrix(basicType))
423 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType)
424 : glu::getDataTypeMatrixNumRows(basicType);
430 return getDataTypeByteAlignment(basicType);
482 const glu::DataType basicType = type.getBasicType();
486 entry.type = basicType;
494 if (glu::isDataTypeMatrix(basicType))
498 const int numVecs = isRowMajor ? glu::getDataTypeMatrixNumRows(basicType)
499 : glu::getDataTypeMatrixNumColumns(basicType);
512 curOffset += getDataTypeByteSize(basicType);
841 void getCompareDependencies (std::set<glu::DataType>& compareFuncs, glu::DataType basicType)
843 switch (basicType)
849 compareFuncs.insert(basicType);
862 compareFuncs.insert(glu::getDataTypeFloatVec(glu::getDataTypeMatrixNumRows(basicType)));
863 compareFuncs.insert(basicType);
867 compareFuncs.insert(basicType);
979 void generateImmMatrixSrc (std::ostream& src, glu::DataType basicType, int matrixStride, bool isRowMajor, const void* valuePtr)
981 DE_ASSERT(glu::isDataTypeMatrix(basicType));
984 const int numRows = glu::getDataTypeMatrixNumRows(basicType);
985 const int numCols = glu::getDataTypeMatrixNumColumns(basicType);
987 src << glu::getDataTypeName(basicType) << "(";
1007 void generateImmScalarVectorSrc (std::ostream& src, glu::DataType basicType, const void* valuePtr)
1009 DE_ASSERT(glu::isDataTypeFloatOrVec(basicType) ||
1010 glu::isDataTypeIntOrIVec(basicType) ||
1011 glu::isDataTypeUintOrUVec(basicType) ||
1012 glu::isDataTypeBoolOrBVec(basicType));
1014 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType);
1015 const int scalarSize = glu::getDataTypeScalarSize(basicType);
1019 src << glu::getDataTypeName(basicType) << "(";
1156 const glu::DataType basicType = curType.getBasicType();
1157 const bool isMatrix = glu::isDataTypeMatrix(basicType);
1158 const char* typeName = glu::getDataTypeName(basicType);
1164 generateImmMatrixSrc(src, basicType, varLayout.matrixStride, varLayout.isRowMajor, valuePtr);
1166 generateImmScalarVectorSrc(src, basicType, valuePtr);
1240 const glu::DataType basicType = curType.getBasicType();
1241 const bool isMatrix = glu::isDataTypeMatrix(basicType);
1247 generateImmMatrixSrc(src, basicType, varLayout.matrixStride, varLayout.isRowMajor, valuePtr);
1249 generateImmScalarVectorSrc(src, basicType, valuePtr);