Home | History | Annotate | Download | only in opengl

Lines Matching refs:dataType

166 // DataType
168 const char* getDataTypeName (DataType dataType)
243 DE_ASSERT(deInBounds32((int)dataType, 0, DE_LENGTH_OF_ARRAY(s_names)));
244 return s_names[(int)dataType];
247 int getDataTypeScalarSize (DataType dataType)
322 DE_ASSERT(deInBounds32((int)dataType, 0, DE_LENGTH_OF_ARRAY(s_sizes)));
323 return s_sizes[(int)dataType];
326 DataType getDataTypeScalarType (DataType dataType)
328 const DataType s_scalarTypes[] =
401 DE_ASSERT(deInBounds32((int)dataType, 0, DE_LENGTH_OF_ARRAY(s_scalarTypes)));
402 return s_scalarTypes[(int)dataType];
405 DataType getDataTypeFloatScalars (DataType dataType)
407 const DataType s_floatTypes[] =
480 DE_ASSERT(deInBounds32((int)dataType, 0, DE_LENGTH_OF_ARRAY(s_floatTypes)));
481 return s_floatTypes[(int)dataType];
484 DataType getDataTypeVector (DataType scalarType, int size)
493 return (DataType)((int)scalarType + size - 1);
499 DataType getDataTypeFloatVec (int vecSize)
504 DataType getDataTypeIntVec (int vecSize)
509 DataType getDataTypeUintVec (int vecSize)
514 DataType getDataTypeBoolVec (int vecSize)
519 DataType getDataTypeMatrix (int numCols, int numRows)
522 return (DataType)((int)TYPE_FLOAT_MAT2 + (numCols-2)*3 + (numRows-2));
525 int getDataTypeMatrixNumRows (DataType dataType)
527 switch (dataType)
544 int getDataTypeMatrixNumColumns (DataType dataType)
546 switch (dataType)
563 int getDataTypeNumLocations (DataType dataType)
565 if (isDataTypeScalarOrVector(dataType))
567 else if (isDataTypeMatrix(dataType))
568 return getDataTypeMatrixNumColumns(dataType);
570 DE_ASSERT(!"Illegal datatype.");
574 int getDataTypeNumComponents (DataType dataType)
576 if (isDataTypeScalarOrVector(dataType))
577 return getDataTypeScalarSize(dataType);
578 else if (isDataTypeMatrix(dataType))
579 return getDataTypeMatrixNumRows(dataType);
581 DE_ASSERT(!"Illegal datatype.");
585 DataType getDataTypeFromGLType (deUint32 glType)