Lines Matching refs:uniformInfo

101 														 const vector<UniformInfo>&	uniformInfo);
150 const vector<UniformInfo>& uniformInfo)
153 , m_uniformInfo (uniformInfo)
284 const UniformInfo& uniformInfo = uniformList[uniformNdx];
286 const bool declareInVert = (uniformInfo.declareLocation & UniformInfo::SHADERSTAGE_VERTEX) != 0;
287 const bool declareInFrag = (uniformInfo.declareLocation & UniformInfo::SHADERSTAGE_FRAGMENT) != 0;
288 const bool layoutInVert = (uniformInfo.layoutLocation & UniformInfo::SHADERSTAGE_VERTEX) != 0;
289 const bool layoutInFrag = (uniformInfo.layoutLocation & UniformInfo::SHADERSTAGE_FRAGMENT) != 0;
290 const bool checkInVert = (uniformInfo.checkLocation & UniformInfo::SHADERSTAGE_VERTEX) != 0;
291 const bool checkInFrag = (uniformInfo.checkLocation & UniformInfo::SHADERSTAGE_FRAGMENT) != 0;
293 const string layout = uniformInfo.location >= 0 ? "layout(location = " + de::toString(uniformInfo.location) + ") " : "";
296 int location = uniformInfo.location;
304 if (uniformInfo.type.isStructType())
306 const glu::StructType* const structType = uniformInfo.type.getStructPtr();
320 vertDecl << "uniform " << (layoutInVert ? layout : "") << glu::declare(uniformInfo.type, uniName) << ";\n";
323 fragDecl << "uniform " << (layoutInFrag ? layout : "") << glu::declare(uniformInfo.type, uniName) << ";\n";
326 for (glu::BasicTypeIterator subTypeIter = glu::BasicTypeIterator::begin(&uniformInfo.type); subTypeIter != glu::BasicTypeIterator::end(&uniformInfo.type); subTypeIter++, subTypeIndex++)
328 const glu::VarType subType = glu::getVarType(uniformInfo.type, subTypeIter.getPath());
337 << glu::TypeAccessFormat(uniformInfo.type, subTypeIter.getPath())
341 << glu::TypeAccessFormat(uniformInfo.type, subTypeIter.getPath())
348 << glu::TypeAccessFormat(uniformInfo.type, subTypeIter.getPath())
352 << glu::TypeAccessFormat(uniformInfo.type, subTypeIter.getPath())
388 const UniformInfo& uniformInfo = uniformList[uniformNdx];
391 for (glu::BasicTypeIterator subTypeIter = glu::BasicTypeIterator::begin(&uniformInfo.type); subTypeIter != glu::BasicTypeIterator::end(&uniformInfo.type); subTypeIter++, subTypeIndex++)
393 const string name = getUniformName(uniformNdx, uniformInfo.type, subTypeIter.getPath());
395 const int expectLoc = uniformInfo.location >= 0 ? uniformInfo.location+subTypeIndex : -1;
399 if (uniformInfo.checkLocation == 0 && gotLoc == -1)
584 const UniformInfo& uniformInfo = uniformList[uniformNdx];
585 int expectedLocation = uniformInfo.location;
587 for (glu::BasicTypeIterator subTypeIter = glu::BasicTypeIterator::begin(&uniformInfo.type); subTypeIter != glu::BasicTypeIterator::end(&uniformInfo.type); subTypeIter++)
589 const glu::VarType type = glu::getVarType(uniformInfo.type, subTypeIter.getPath());
590 const string name = getUniformName(uniformNdx, uniformInfo.type, subTypeIter.getPath());
693 const vector<UniformInfo>& uniformInfo);
702 const vector<UniformInfo>& uniformInfo)
703 : UniformLocationCase(context, renderContext, name, desc, uniformInfo)
705 DE_ASSERT(!uniformInfo.empty());
711 vector<UniformInfo> uniformInfo = m_uniformInfo;
715 uniformInfo[0].location = maxLocation-1;
717 return UniformLocationCase::run(uniformInfo);