Home | History | Annotate | Download | only in glshared

Lines Matching defs:varType

34 static rr::GenericVecType mapToGenericVecType (const rsg::VariableType& varType)
36 if (varType.isFloatOrVec())
38 else if (varType.isIntOrVec())
47 static glu::DataType mapToBasicType (const rsg::VariableType& varType)
49 if (varType.isFloatOrVec() || varType.isIntOrVec() || varType.isBoolOrVec())
51 const glu::DataType scalarType = varType.isFloatOrVec() ? glu::TYPE_FLOAT :
52 varType.isIntOrVec() ? glu::TYPE_INT :
53 varType.isBoolOrVec() ? glu::TYPE_BOOL : glu::TYPE_LAST;
54 const int numComps = varType.getNumElements();
59 else if (varType.getBaseType() == rsg::VariableType::TYPE_SAMPLER_2D)
61 else if (varType.getBaseType() == rsg::VariableType::TYPE_SAMPLER_CUBE)
225 const rsg::VariableType& varType = var->getType();
226 const int numComponents = varType.getNumElements();
229 DE_ASSERT(varType.isFloatOrVec() && de::inRange(numComponents, 1, 4));
263 const rsg::VariableType& varType = var->getType();
264 const int numComponents = varType.getNumElements();
267 DE_ASSERT(varType.isFloatOrVec() && de::inRange(numComponents, 1, 4));