Lines Matching refs:arrayNdx
771 for (int arrayNdx = 0; arrayNdx < (int)arrays.size(); arrayNdx++)
773 m_componentCount[arrayNdx] = getComponentCount(arrays[arrayNdx]->getOutputType());
774 m_attrType[arrayNdx] = mapOutputType(arrays[arrayNdx]->getOutputType());
913 for (int arrayNdx = 0; arrayNdx < (int)arrays.size(); arrayNdx++)
916 << "${VTX_IN} highp " << ContextArray::outputTypeToGLType(arrays[arrayNdx]->getOutputType()) << " a_" << arrays[arrayNdx]->getAttribNdx() << ";\n";
929 for (int arrayNdx = 0; arrayNdx < (int)arrays.size(); arrayNdx++)
931 if (arrays[arrayNdx]->getAttribNdx() == 0)
933 switch (arrays[arrayNdx]->getOutputType())
984 switch (arrays[arrayNdx]->getOutputType())
988 "\tcolor = color * a_" << arrays[arrayNdx]->getAttribNdx() << ";\n";
993 "\tcolor.rg = color.rg * a_" << arrays[arrayNdx]->getAttribNdx() << ".xy;\n";
998 "\tcolor = color.rgb * a_" << arrays[arrayNdx]->getAttribNdx() << ".xyz;\n";
1003 "\tcolor = color.rgb * a_" << arrays[arrayNdx]->getAttribNdx() << ".xyz * a_" << arrays[arrayNdx]->getAttribNdx() << ".w;\n";
1127 for (int arrayNdx = 0; arrayNdx < (int)arrays.size(); arrayNdx++)
1128 decl << sglr::pdec::VertexAttribute(std::string("a_") + de::toString(arrayNdx), mapOutputType(arrays[arrayNdx]->getOutputType()));
1173 for (int arrayNdx = 0; arrayNdx < (int)m_arrays.size(); arrayNdx++)
1175 if (m_arrays[arrayNdx]->isBound())
1178 attribName << "a_" << m_arrays[arrayNdx]->getAttribNdx();
1184 m_arrays[arrayNdx]->glBind(loc);
1192 for (int arrayNdx = 0; arrayNdx < (int)m_arrays.size(); arrayNdx++)
1194 if (m_arrays[arrayNdx]->isBound())
1197 attribName << "a_" << m_arrays[arrayNdx]->getAttribNdx();
2072 for (int arrayNdx = 1; arrayNdx < (int)m_spec.arrays.size(); arrayNdx++)
2074 Spec::ArraySpec arraySpec = m_spec.arrays[arrayNdx];
2083 for (int arrayNdx = 0; arrayNdx < (int)m_spec.arrays.size(); arrayNdx++)
2085 Spec::ArraySpec arraySpec = m_spec.arrays[arrayNdx];
2099 if (arrayNdx == 0)
2118 m_glArrayPack->getArray(arrayNdx)->data(Array::TARGET_ARRAY, (int)bufferSize, data, arraySpec.usage);
2119 m_rrArrayPack->getArray(arrayNdx)->data(Array::TARGET_ARRAY, (int)bufferSize, data, arraySpec.usage);
2121 m_glArrayPack->getArray(arrayNdx)->bind(arrayNdx, arraySpec.offset, arraySpec.componentCount, arraySpec.inputType, arraySpec.outputType, arraySpec.normalize, arraySpec.stride);
2122 m_rrArrayPack->getArray(arrayNdx)->bind(arrayNdx, arraySpec.offset, arraySpec.componentCount, arraySpec.inputType, arraySpec.outputType, arraySpec.normalize, arraySpec.stride);