Home | History | Annotate | Download | only in functional

Lines Matching defs:varType

138 								ShaderIndexingCase		(Context& context, const char* name, const char* description, bool isVertexCase, DataType varType, ShaderEvalFunc evalFunc, const char* vertShaderSource, const char* fragShaderSource);
151 ShaderIndexingCase::ShaderIndexingCase (Context& context, const char* name, const char* description, bool isVertexCase, DataType varType, ShaderEvalFunc evalFunc, const char* vertShaderSource, const char* fragShaderSource)
154 m_varType = varType;
221 static ShaderIndexingCase* createVaryingArrayCase (Context& context, const char* caseName, const char* description, DataType varType, IndexAccessType vertAccess, IndexAccessType fragAccess)
314 params.insert(pair<string, string>("VAR_TYPE", getDataTypeName(varType)));
318 if (varType == TYPE_FLOAT)
320 else if (varType == TYPE_FLOAT_VEC2)
322 else if (varType == TYPE_FLOAT_VEC3)
332 ShaderEvalFunc evalFunc = getArrayCoordsEvalFunc(varType);
333 return new ShaderIndexingCase(context, caseName, description, true, varType, evalFunc, vertexShaderSource.c_str(), fragmentShaderSource.c_str());
336 static ShaderIndexingCase* createUniformArrayCase (Context& context, const char* caseName, const char* description, bool isVertexCase, DataType varType, IndexAccessType readAccess)
420 params.insert(pair<string, string>("VAR_TYPE", getDataTypeName(varType)));
424 if (varType == TYPE_FLOAT)
426 else if (varType == TYPE_FLOAT_VEC2)
428 else if (varType == TYPE_FLOAT_VEC3)
438 ShaderEvalFunc evalFunc = getArrayUniformEvalFunc(varType);
439 return new ShaderIndexingCase(context, caseName, description, isVertexCase, varType, evalFunc, vertexShaderSource.c_str(), fragmentShaderSource.c_str());
442 static ShaderIndexingCase* createTmpArrayCase (Context& context, const char* caseName, const char* description, bool isVertexCase, DataType varType, IndexAccessType writeAccess, IndexAccessType readAccess)
564 params.insert(pair<string, string>("VAR_TYPE", getDataTypeName(varType)));
568 if (varType == TYPE_FLOAT)
570 else if (varType == TYPE_FLOAT_VEC2)
572 else if (varType == TYPE_FLOAT_VEC3)
582 ShaderEvalFunc evalFunc = getArrayCoordsEvalFunc(varType);
583 return new ShaderIndexingCase(context, caseName, description, isVertexCase, varType, evalFunc, vertexShaderSource.c_str(), fragmentShaderSource.c_str());
602 static ShaderIndexingCase* createVectorSubscriptCase (Context& context, const char* caseName, const char* description, bool isVertexCase, DataType varType, VectorAccessType writeAccess, VectorAccessType readAccess)
608 int vecLen = getDataTypeScalarSize(varType);
754 params.insert(pair<string, string>("VAR_TYPE", getDataTypeName(varType)));
764 ShaderEvalFunc evalFunc = getVectorSubscriptEvalFunc(varType);
765 return new ShaderIndexingCase(context, caseName, description, isVertexCase, varType, evalFunc, vertexShaderSource.c_str(), fragmentShaderSource.c_str());
802 static ShaderIndexingCase* createMatrixSubscriptCase (Context& context, const char* caseName, const char* description, bool isVertexCase, DataType varType, IndexAccessType writeAccess, IndexAccessType readAccess)
808 int numCols = getDataTypeMatrixNumColumns(varType);
809 int numRows = getDataTypeMatrixNumRows(varType);
935 params.insert(pair<string, string>("MAT_TYPE", getDataTypeName(varType)));
951 ShaderEvalFunc evalFunc = getMatrixSubscriptEvalFunc(varType);
952 return new ShaderIndexingCase(context, caseName, description, isVertexCase, varType, evalFunc, vertexShaderSource.c_str(), fragmentShaderSource.c_str());
989 DataType varType = s_floatAndVecTypes[typeNdx];
996 string name = string(getDataTypeName(varType)) + "_" + vertAccessName + "_write_" + fragAccessName + "_read";
998 varyingGroup->addChild(createVaryingArrayCase(m_context, name.c_str(), desc.c_str(), varType, (IndexAccessType)vertAccess, (IndexAccessType)fragAccess));
1011 DataType varType = s_floatAndVecTypes[typeNdx];
1019 string name = string(getDataTypeName(varType)) + "_" + readAccessName + "_read_" + shaderTypeName;
1022 uniformGroup->addChild(createUniformArrayCase(m_context, name.c_str(), desc.c_str(), isVertexCase, varType, (IndexAccessType)readAccess));
1035 DataType varType = s_floatAndVecTypes[typeNdx];
1047 string name = string(getDataTypeName(varType)) + "_" + writeAccessName + "_write_" + readAccessName + "_read_" + shaderTypeName;
1050 tmpGroup->addChild(createTmpArrayCase(m_context, name.c_str(), desc.c_str(), isVertexCase, varType, (IndexAccessType)writeAccess, (IndexAccessType)readAccess));
1071 DataType varType = s_vectorTypes[typeNdx];
1083 string name = string(getDataTypeName(varType)) + "_" + writeAccessName + "_write_" + readAccessName + "_read_" + shaderTypeName;
1086 vecGroup->addChild(createVectorSubscriptCase(m_context, name.c_str(), desc.c_str(), isVertexCase, varType, (VectorAccessType)writeAccess, (VectorAccessType)readAccess));
1113 DataType varType = s_matrixTypes[typeNdx];
1125 string name = string(getDataTypeName(varType)) + "_" + writeAccessName + "_write_" + readAccessName + "_read_" + shaderTypeName;
1128 matGroup->addChild(createMatrixSubscriptCase(m_context, name.c_str(), desc.c_str(), isVertexCase, varType, (IndexAccessType)writeAccess, (IndexAccessType)readAccess));