Lines Matching refs:Attribute
70 return (iter == bindings.end() ? (deInt32)Attribute::LOC_UNDEF : iter->second); in getBoundLocation()
73 bool hasAttributeAliasing (const vector<Attribute>& attributes, const map<string, deUint32>& bindin… in hasAttributeAliasing()
82 if (location != Attribute::LOC_UNDEF) in hasAttributeAliasing()
111 string generateAttributeDefinitions (const vector<Attribute>& attributes) in generateAttributeDefinitions()
115 for (vector<Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter) in generateAttributeDefinitions()
117 if (iter->getLayoutLocation() != Attribute::LOC_UNDEF) in generateAttributeDefinitions()
123 …<< (iter->getArraySize() != Attribute::NOT_ARRAY ? "[" + de::toString(iter->getArraySize()) + "]"… in generateAttributeDefinitions()
129 string generateConditionUniformDefinitions (const vector<Attribute>& attributes) in generateConditionUniformDefinitions()
134 for (vector<Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter) in generateConditionUniformDefinitions()
146 string generateToVec4Expression (const Attribute& attrib, int id=-1) in generateToVec4Expression()
148 …const string variableName(attrib.getName() + (attrib.getArraySize() != Attribute::NOT_ARRAY ? "["… in generateToVec4Expression()
173 string generateOutputCode (const vector<Attribute>& attributes) in generateOutputCode()
177 for (vector<Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter) in generateOutputCode()
185 if (iter->getArraySize() == Attribute::NOT_ARRAY) in generateOutputCode()
197 if (iter->getArraySize() == Attribute::NOT_ARRAY) in generateOutputCode()
211 if (iter->getArraySize() == Attribute::NOT_ARRAY) in generateOutputCode()
227 string generateVertexShaderTemplate (const vector<Attribute>& attributes) in generateVertexShaderTemplate()
254 string createVertexShaderSource (glu::RenderContext& renderCtx, const vector<Attribute>& attributes… in createVertexShaderSource()
412 …Log& log, glu::RenderContext& renderCtx, deUint32 program, const vector<Attribute>& attributes, bo… in createAndAttachShaders()
483 void logAttributes (TestLog& log, const vector<Attribute>& attributes) in logAttributes()
487 const Attribute& attrib = attributes[attribNdx]; in logAttributes()
492 …<< (attrib.getLayoutLocation() != Attribute::LOC_UNDEF ? ", Layout location " + de::toString(attri… in logAttributes()
497 …ery (TestLog& log, const glw::Functions& gl, deUint32 program, const vector<Attribute>& attributes) in checkActiveAttribQuery()
533 const Attribute& attrib = attributes[attribNdx]; in checkActiveAttribQuery()
547 if (attrib.getArraySize() == Attribute::NOT_ARRAY) in checkActiveAttribQuery()
581 const Attribute& attrib = attributes[attribNdx]; in checkActiveAttribQuery()
602 …(TestLog& log, const glw::Functions& gl, deUint32 program, const vector<Attribute>& attributes, co… in checkAttribLocationQuery()
608 const Attribute& attrib = attributes[attribNdx]; in checkAttribLocationQuery()
609 …const deInt32 expectedLocation = (attrib.getLayoutLocation() != Attribute::LOC_UNDEF ? attrib.get… in checkAttribLocationQuery()
616 …<< (attrib.getCondition() != Cond::COND_NEVER && expectedLocation != Attribute::LOC_UNDEF ? ", exp… in checkAttribLocationQuery()
622 …if (attrib.getCondition() != Cond::COND_NEVER && expectedLocation != Attribute::LOC_UNDEF && expec… in checkAttribLocationQuery()
625 …isOk &= (attrib.getCondition() == Cond::COND_NEVER || expectedLocation == Attribute::LOC_UNDEF || … in checkAttribLocationQuery()
631 bool checkQuery (TestLog& log, const glw::Functions& gl, deUint32 program, const vector<Attribute>&… in checkQuery()
643 …return type.getName() + (arraySize != Attribute::NOT_ARRAY ? "_array_" + de::toString(arraySize) :… in generateTestName()
671 Attribute::Attribute (const AttribType& type, const string& name, deInt32 layoutLocation, const Con… in Attribute() function in deqp::gls::AttributeLocationTestUtil::Attribute
688 const vector<Attribute>& attributes, in runTest()
694 const vector<Attribute>& reattachAttributes = vector<Attribute>()) in runTest()
819 vector<Attribute> attributes; in iterate()
822 …attributes.push_back(Attribute(m_type, "a_0", Attribute::LOC_UNDEF, Cond::COND_ALWAYS, m_arraySize… in iterate()
844 const int arrayElementCount = (m_arraySize != Attribute::NOT_ARRAY ? m_arraySize : 1); in iterate()
846 vector<Attribute> attributes; in iterate()
854 …attributes.push_back(Attribute(m_type, "a_" + de::toString(ndx), Attribute::LOC_UNDEF, Cond::COND_… in iterate()
881 vector<Attribute> attributes; in iterate()
884 attributes.push_back(Attribute(m_type, "a_0", Attribute::LOC_UNDEF, Cond("A", true), m_arraySize)); in iterate()
885 …attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_1", Attribute::LOC_UNDEF, … in iterate()
908 const int arrayElementCount = (m_arraySize != Attribute::NOT_ARRAY ? m_arraySize : 1); in iterate()
910 vector<Attribute> attributes; in iterate()
918 …attributes.push_back(Attribute(m_type, "a_" + de::toString(ndx), Attribute::LOC_UNDEF, Cond("A", t… in iterate()
921 …attributes.push_back(Attribute(m_type, "a_" + de::toString(ndx + maxAttributes), Attribute::LOC_UN… in iterate()
946 const int arrayElementCount = (m_arraySize != Attribute::NOT_ARRAY ? m_arraySize : 1); in iterate()
948 vector<Attribute> attributes; in iterate()
952 attributes.push_back(Attribute(vec4, "a_0")); in iterate()
955 …attributes.push_back(Attribute(m_type, "a_1", Attribute::LOC_UNDEF, Cond::COND_ALWAYS, m_arraySize… in iterate()
960 attributes.push_back(Attribute(vec4, "a_" + de::toString(ndx))); in iterate()
986 const int arrayElementCount = (m_arraySize != Attribute::NOT_ARRAY ? m_arraySize : 1); in iterate()
988 vector<Attribute> attributes; in iterate()
996 …attributes.push_back(Attribute(m_type, "a_" + de::toString(ndx), Attribute::LOC_UNDEF, Cond("A"))); in iterate()
999 …attributes.push_back(Attribute(m_type, "a_" + de::toString(ndx + maxAttributes), Attribute::LOC_UN… in iterate()
1019 vector<Attribute> attributes; in iterate()
1022 attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_0")); in iterate()
1040 vector<Attribute> attributes; in iterate()
1043 attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_0")); in iterate()
1061 vector<Attribute> attributes; in iterate()
1064 attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_0")); in iterate()
1086 vector<Attribute> attributes; in iterate()
1088 attributes.push_back(Attribute(m_type, "a_0", 3, Cond::COND_ALWAYS, m_arraySize)); in iterate()
1109 const int arrayElementCount = (m_arraySize != Attribute::NOT_ARRAY ? m_arraySize : 1); in iterate()
1111 vector<Attribute> attributes; in iterate()
1118 …attributes.push_back(Attribute(m_type, "a_" + de::toString(ndx), loc, Cond::COND_ALWAYS, m_arraySi… in iterate()
1142 const int arrayElementCount = (m_arraySize != Attribute::NOT_ARRAY ? m_arraySize : 1); in iterate()
1144 vector<Attribute> attributes; in iterate()
1147 attributes.push_back(Attribute(vec4, "a_0", 0)); in iterate()
1149 …attributes.push_back(Attribute(m_type, "a_1", Attribute::LOC_UNDEF, Cond::COND_ALWAYS, m_arraySize… in iterate()
1154 attributes.push_back(Attribute(vec4, "a_" + de::toString(ndx), loc)); in iterate()
1178 vector<Attribute> attributes; in iterate()
1180 attributes.push_back(Attribute(m_type, "a_0", 3, Cond::COND_ALWAYS, m_arraySize)); in iterate()
1202 const int arrayElementCount = (m_arraySize != Attribute::NOT_ARRAY ? m_arraySize : 1); in iterate()
1205 vector<Attribute> attributes; in iterate()
1213 …attributes.push_back(Attribute(m_type, "a_" + de::toString(ndx), loc, Cond::COND_ALWAYS, m_arraySi… in iterate()
1216 …attributes.push_back(Attribute(m_type, "a_" + de::toString(ndx), Attribute::LOC_UNDEF, Cond::COND_… in iterate()
1243 const int arrayElementCount = (m_arraySize != Attribute::NOT_ARRAY ? m_arraySize : 1); in iterate()
1246 vector<Attribute> attributes; in iterate()
1249 attributes.push_back(Attribute(vec4, "a_0")); in iterate()
1252 …attributes.push_back(Attribute(m_type, "a_1", Attribute::LOC_UNDEF, Cond::COND_ALWAYS, m_arraySize… in iterate()
1258 attributes.push_back(Attribute(vec4, "a_" + de::toString(ndx), loc)); in iterate()
1261 attributes.push_back(Attribute(vec4, "a_" + de::toString(ndx), loc)); in iterate()
1284 vector<Attribute> attributes; in iterate()
1288 attributes.push_back(Attribute(vec4, "a_0")); in iterate()
1289 attributes.push_back(Attribute(vec4, "a_1")); in iterate()
1316 const int arrayElementCount = (m_arraySize != Attribute::NOT_ARRAY ? m_arraySize : 1); in iterate()
1318 vector<Attribute> attributes; in iterate()
1323 attributes.push_back(Attribute(vec4, "a_0")); in iterate()
1326 …attributes.push_back(Attribute(m_type, "a_1", Attribute::LOC_UNDEF, Cond::COND_ALWAYS, m_arraySize… in iterate()
1331 attributes.push_back(Attribute(vec4, "a_" + de::toString(ndx))); in iterate()
1359 const int arrayElementCount = (m_arraySize != Attribute::NOT_ARRAY ? m_arraySize : 1); in iterate()
1363 vector<Attribute> attributes; in iterate()
1366 attributes.push_back(Attribute(vec4, "a_0")); in iterate()
1369 …attributes.push_back(Attribute(m_type, "a_1", Attribute::LOC_UNDEF, Cond::COND_ALWAYS, m_arraySize… in iterate()
1375 attributes.push_back(Attribute(vec4, "a_" + de::toString(ndx), loc)); in iterate()
1378 attributes.push_back(Attribute(vec4, "a_" + de::toString(ndx))); in iterate()
1405 vector<Attribute> attributes; in iterate()
1406 vector<Attribute> reattachAttributes; in iterate()
1408 attributes.push_back(Attribute(vec4, "a_0")); in iterate()
1412 reattachAttributes.push_back(Attribute(vec2, "a_1")); in iterate()
1429 vector<Attribute> attributes; in iterate()
1432 attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_0", 1)); in iterate()
1450 vector<Attribute> attributes; in iterate()
1453 attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_0", 1)); in iterate()
1471 vector<Attribute> attributes; in iterate()
1474 attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_0", 1)); in iterate()
1495 vector<Attribute> attributes; in iterate()
1496 vector<Attribute> reattachAttributes; in iterate()
1498 attributes.push_back(Attribute(vec4, "a_0", 2)); in iterate()
1502 reattachAttributes.push_back(Attribute(vec2, "a_1")); in iterate()
1520 vector<Attribute> attributes; in iterate()
1524 attributes.push_back(Attribute(vec4, "a_0", 1)); in iterate()
1525 attributes.push_back(Attribute(vec4, "a_1")); in iterate()