Lines Matching refs:attributes
73 bool hasAttributeAliasing (const vector<Attribute>& attributes, const map<string, deUint32>& bindin… in hasAttributeAliasing() argument
77 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in hasAttributeAliasing()
79 const deInt32 location = getBoundLocation(bindings, attributes[attribNdx].getName()); in hasAttributeAliasing()
80 const deUint32 size = attributes[attribNdx].getType().getLocationSize(); in hasAttributeAliasing()
111 string generateAttributeDefinitions (const vector<Attribute>& attributes) in generateAttributeDefinitions() argument
115 for (vector<Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter) in generateAttributeDefinitions()
129 string generateConditionUniformDefinitions (const vector<Attribute>& attributes) in generateConditionUniformDefinitions() argument
134 for (vector<Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter) in generateConditionUniformDefinitions()
173 string generateOutputCode (const vector<Attribute>& attributes) in generateOutputCode() argument
177 for (vector<Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter) in generateOutputCode()
227 string generateVertexShaderTemplate (const vector<Attribute>& attributes) in generateVertexShaderTemplate() argument
234 src << generateAttributeDefinitions(attributes) in generateVertexShaderTemplate()
236 << generateConditionUniformDefinitions(attributes) in generateVertexShaderTemplate()
244 src << generateOutputCode(attributes); in generateVertexShaderTemplate()
254 string createVertexShaderSource (glu::RenderContext& renderCtx, const vector<Attribute>& attributes… in createVertexShaderSource() argument
260 const tcu::StringTemplate vertexShaderTemplate(generateVertexShaderTemplate(attributes)); in createVertexShaderSource()
412 …::RenderContext& renderCtx, deUint32 program, const vector<Attribute>& attributes, bool attributeA… in createAndAttachShaders() argument
415 …const string vertexShaderSource = createVertexShaderSource(renderCtx, attributes, attributeAlia… in createAndAttachShaders()
483 void logAttributes (TestLog& log, const vector<Attribute>& attributes) in logAttributes() argument
485 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in logAttributes()
487 const Attribute& attrib = attributes[attribNdx]; in logAttributes()
497 …ery (TestLog& log, const glw::Functions& gl, deUint32 program, const vector<Attribute>& attributes) in checkActiveAttribQuery() argument
531 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in checkActiveAttribQuery()
533 const Attribute& attrib = attributes[attribNdx]; in checkActiveAttribQuery()
579 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in checkActiveAttribQuery()
581 const Attribute& attrib = attributes[attribNdx]; in checkActiveAttribQuery()
602 …, const glw::Functions& gl, deUint32 program, const vector<Attribute>& attributes, const map<strin… in checkAttribLocationQuery() argument
606 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in checkAttribLocationQuery()
608 const Attribute& attrib = attributes[attribNdx]; in checkAttribLocationQuery()
631 …, const glw::Functions& gl, deUint32 program, const vector<Attribute>& attributes, const map<strin… in checkQuery() argument
633 bool isOk = checkActiveAttribQuery(log, gl, program, attributes); in checkQuery()
635 if (!checkAttribLocationQuery(log, gl, program, attributes, bindings)) in checkQuery()
688 const vector<Attribute>& attributes, in runTest() argument
714 logAttributes(testCtx.getLog(), attributes); in runTest()
725 …ders = createAndAttachShaders(log, renderCtx, program, attributes, hasAttributeAliasing(attributes… in runTest()
738 if (!checkQuery(log, gl, program, attributes, activeBindings)) in runTest()
745 if (!checkQuery(log, gl, program, attributes, activeBindings)) in runTest()
761 if (!checkQuery(log, gl, program, attributes, activeBindings)) in runTest()
819 vector<Attribute> attributes; in iterate() local
822 …attributes.push_back(Attribute(m_type, "a_0", Attribute::LOC_UNDEF, Cond::COND_ALWAYS, m_arraySize… in iterate()
825 runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false); in iterate()
846 vector<Attribute> attributes; in iterate() local
854 …attributes.push_back(Attribute(m_type, "a_" + de::toString(ndx), Attribute::LOC_UNDEF, Cond::COND_… in iterate()
859 runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false); in iterate()
881 vector<Attribute> attributes; in iterate() local
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()
889 runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false); in iterate()
910 vector<Attribute> attributes; in iterate() local
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()
926 runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false); in iterate()
948 vector<Attribute> attributes; in iterate() local
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()
966 runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false); in iterate()
988 vector<Attribute> attributes; in iterate() local
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()
1004 runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false); in iterate()
1019 vector<Attribute> attributes; in iterate() local
1022 attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_0")); in iterate()
1025 runTest(m_testCtx, m_renderCtx, attributes, bindings, noBindings, noBindings, false); in iterate()
1040 vector<Attribute> attributes; in iterate() local
1043 attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_0")); in iterate()
1046 runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false); in iterate()
1061 vector<Attribute> attributes; in iterate() local
1064 attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_0")); in iterate()
1067 runTest(m_testCtx, m_renderCtx, attributes, noBindings, noBindings, bindings, false); in iterate()
1086 vector<Attribute> attributes; in iterate() local
1088 attributes.push_back(Attribute(m_type, "a_0", 3, Cond::COND_ALWAYS, m_arraySize)); in iterate()
1090 runTest(m_testCtx, m_renderCtx, attributes, noBindings, noBindings, noBindings, false); in iterate()
1111 vector<Attribute> attributes; in iterate() local
1118 …attributes.push_back(Attribute(m_type, "a_" + de::toString(ndx), loc, Cond::COND_ALWAYS, m_arraySi… in iterate()
1122 runTest(m_testCtx, m_renderCtx, attributes, noBindings, noBindings, noBindings, false); in iterate()
1144 vector<Attribute> attributes; in iterate() local
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()
1158 runTest(m_testCtx, m_renderCtx, attributes, noBindings, noBindings, noBindings, false); in iterate()
1178 vector<Attribute> attributes; in iterate() local
1180 attributes.push_back(Attribute(m_type, "a_0", 3, Cond::COND_ALWAYS, m_arraySize)); in iterate()
1183 runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false); in iterate()
1205 vector<Attribute> attributes; in iterate() local
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()
1223 runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false); in iterate()
1246 vector<Attribute> attributes; in iterate() local
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()
1268 runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false); in iterate()
1284 vector<Attribute> attributes; in iterate() local
1288 attributes.push_back(Attribute(vec4, "a_0")); in iterate()
1289 attributes.push_back(Attribute(vec4, "a_1")); in iterate()
1296 runTest(m_testCtx, m_renderCtx, attributes, noBindings, preLinkBindings, postLinkBindings, true); in iterate()
1318 vector<Attribute> attributes; in iterate() local
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()
1339 runTest(m_testCtx, m_renderCtx, attributes, noBindings, preLinkBindings, postLinkBindings, true); in iterate()
1363 vector<Attribute> attributes; in iterate() local
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()
1387 runTest(m_testCtx, m_renderCtx, attributes, noBindings, preLinkBindings, postLinkBindings, true); in iterate()
1405 vector<Attribute> attributes; in iterate() local
1408 attributes.push_back(Attribute(vec4, "a_0")); in iterate()
1414 …runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false, true, reattac… in iterate()
1429 vector<Attribute> attributes; in iterate() local
1432 attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_0", 1)); in iterate()
1435 runTest(m_testCtx, m_renderCtx, attributes, bindings, noBindings, noBindings, false); in iterate()
1450 vector<Attribute> attributes; in iterate() local
1453 attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_0", 1)); in iterate()
1456 runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false); in iterate()
1471 vector<Attribute> attributes; in iterate() local
1474 attributes.push_back(Attribute(AttribType("vec4", 1, GL_FLOAT_VEC4), "a_0", 1)); in iterate()
1477 runTest(m_testCtx, m_renderCtx, attributes, noBindings, noBindings, bindings, false); in iterate()
1495 vector<Attribute> attributes; in iterate() local
1498 attributes.push_back(Attribute(vec4, "a_0", 2)); in iterate()
1504 …runTest(m_testCtx, m_renderCtx, attributes, noBindings, bindings, noBindings, false, true, reattac… in iterate()
1520 vector<Attribute> attributes; in iterate() local
1524 attributes.push_back(Attribute(vec4, "a_0", 1)); in iterate()
1525 attributes.push_back(Attribute(vec4, "a_1")); in iterate()
1532 runTest(m_testCtx, m_renderCtx, attributes, noBindings, preLinkBindings, postLinkBindings, true); in iterate()