Lines Matching refs:iter
68 std::map<string, deUint32>::const_iterator iter = bindings.find(attrib);
70 return (iter == bindings.end() ? (deInt32)Attribute::LOC_UNDEF : iter->second);
115 for (vector<Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter)
117 if (iter->getLayoutLocation() != Attribute::LOC_UNDEF)
118 src << "layout(location = " << iter->getLayoutLocation() << ") ";
121 << iter->getType().getName() << " "
122 << iter->getName()
123 << (iter->getArraySize() != Attribute::NOT_ARRAY ? "[" + de::toString(iter->getArraySize()) + "]" : "") << ";\n";
134 for (vector<Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter)
136 if (iter->getCondition() != Cond::COND_NEVER && iter->getCondition() != Cond::COND_ALWAYS)
137 conditions.insert(iter->getCondition().getName());
140 for (set<string>::const_iterator iter = conditions.begin(); iter != conditions.end(); ++iter)
141 src << "uniform mediump float u_" << (*iter) << ";\n";
177 for (vector<Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter)
179 if (iter->getCondition() == Cond::COND_NEVER)
185 if (iter->getArraySize() == Attribute::NOT_ARRAY)
186 src << "\t\tcolor += " << generateToVec4Expression(*iter) << ";\n";
189 for (int i = 0; i < iter->getArraySize(); i++)
190 src << "\t\tcolor += " << generateToVec4Expression(*iter, i) << ";\n";
195 else if (iter->getCondition() == Cond::COND_ALWAYS)
197 if (iter->getArraySize() == Attribute::NOT_ARRAY)
198 src << "\tcolor += " << generateToVec4Expression(*iter) << ";\n";
201 for (int i = 0; i < iter->getArraySize(); i++)
202 src << "\tcolor += " << generateToVec4Expression(*iter, i) << ";\n";
208 "\tif (u_" << iter->getCondition().getName() << (iter->getCondition().getNegate() ? " != " : " == ") << "0.0)\n"
211 if (iter->getArraySize() == Attribute::NOT_ARRAY)
212 src << "\t\tcolor += " << generateToVec4Expression(*iter) << ";\n";
215 for (int i = 0; i < iter->getArraySize(); i++)
216 src << "\t\tcolor += " << generateToVec4Expression(*iter, i) << ";\n";
475 for (vector<Bind>::const_iterator iter = binds.begin(); iter != binds.end(); ++iter)
477 log << TestLog::Message << "Bind attribute: '" << iter->getAttributeName() << "' to " << iter->getLocation() << TestLog::EndMessage;
478 gl.bindAttribLocation(program, iter->getLocation(), iter->getAttributeName().c_str());