Lines Matching refs:arrays

749 …			ContextShaderProgram		(const glu::RenderContext& ctx, const std::vector<ContextArray*>& arrays);
755 … genVertexSource (const glu::RenderContext& ctx, const std::vector<ContextArray*>& arrays);
760 …createProgramDeclaration (const glu::RenderContext& ctx, const std::vector<ContextArray*>& arrays);
766 …ram::ContextShaderProgram (const glu::RenderContext& ctx, const std::vector<ContextArray*>& arrays) in ContextShaderProgram() argument
767 : sglr::ShaderProgram (createProgramDeclaration(ctx, arrays)) in ContextShaderProgram()
768 , m_componentCount (arrays.size()) in ContextShaderProgram()
769 , m_attrType (arrays.size()) in ContextShaderProgram()
771 for (int arrayNdx = 0; arrayNdx < (int)arrays.size(); arrayNdx++) in ContextShaderProgram()
773 m_componentCount[arrayNdx] = getComponentCount(arrays[arrayNdx]->getOutputType()); in ContextShaderProgram()
774 m_attrType[arrayNdx] = mapOutputType(arrays[arrayNdx]->getOutputType()); in ContextShaderProgram()
876 …rProgram::genVertexSource (const glu::RenderContext& ctx, const std::vector<ContextArray*>& arrays) in genVertexSource() argument
913 for (int arrayNdx = 0; arrayNdx < (int)arrays.size(); arrayNdx++) in genVertexSource()
916 …_IN} highp " << ContextArray::outputTypeToGLType(arrays[arrayNdx]->getOutputType()) << " a_" << a… in genVertexSource()
929 for (int arrayNdx = 0; arrayNdx < (int)arrays.size(); arrayNdx++) in genVertexSource()
931 if (arrays[arrayNdx]->getAttribNdx() == 0) in genVertexSource()
933 switch (arrays[arrayNdx]->getOutputType()) in genVertexSource()
984 switch (arrays[arrayNdx]->getOutputType()) in genVertexSource()
988 "\tcolor = color * a_" << arrays[arrayNdx]->getAttribNdx() << ";\n"; in genVertexSource()
993 "\tcolor.rg = color.rg * a_" << arrays[arrayNdx]->getAttribNdx() << ".xy;\n"; in genVertexSource()
998 "\tcolor = color.rgb * a_" << arrays[arrayNdx]->getAttribNdx() << ".xyz;\n"; in genVertexSource()
1003 …"\tcolor = color.rgb * a_" << arrays[arrayNdx]->getAttribNdx() << ".xyz * a_" << arrays[arrayNdx]-… in genVertexSource()
1123 …:createProgramDeclaration (const glu::RenderContext& ctx, const std::vector<ContextArray*>& arrays) in createProgramDeclaration() argument
1127 for (int arrayNdx = 0; arrayNdx < (int)arrays.size(); arrayNdx++) in createProgramDeclaration()
1128 …ertexAttribute(std::string("a_") + de::toString(arrayNdx), mapOutputType(arrays[arrayNdx]->getOutp… in createProgramDeclaration()
1133 decl << sglr::pdec::VertexSource(genVertexSource(ctx, arrays)); in createProgramDeclaration()
1936 for (size_t ndx = 0; ndx < arrays.size(); ++ndx) in getName()
1938 const ArraySpec& array = arrays[ndx]; in getName()
1940 if (arrays.size() > 1) in getName()
1983 for (size_t ndx = 0; ndx < arrays.size(); ++ndx) in getDesc()
1985 const ArraySpec& array = arrays[ndx]; in getDesc()
2047 Spec::ArraySpec arraySpec = m_spec.arrays[0]; in iterate()
2072 for (int arrayNdx = 1; arrayNdx < (int)m_spec.arrays.size(); arrayNdx++) in iterate()
2074 Spec::ArraySpec arraySpec = m_spec.arrays[arrayNdx]; in iterate()
2083 for (int arrayNdx = 0; arrayNdx < (int)m_spec.arrays.size(); arrayNdx++) in iterate()
2085 Spec::ArraySpec arraySpec = m_spec.arrays[arrayNdx]; in iterate()
2182 for (size_t i = 0; i < m_spec.arrays.size(); ++i) in isUnalignedBufferOffsetTest()
2184 if (m_spec.arrays[i].storage == Array::STORAGE_BUFFER) in isUnalignedBufferOffsetTest()
2186 …const bool inputTypePacked = m_spec.arrays[i].inputType == Array::INPUTTYPE_UNSIGNED_INT_2_10_10_1… in isUnalignedBufferOffsetTest()
2188 int dataTypeSize = Array::inputTypeSize(m_spec.arrays[i].inputType); in isUnalignedBufferOffsetTest()
2192 if (m_spec.arrays[i].offset % dataTypeSize != 0) in isUnalignedBufferOffsetTest()
2203 for (size_t i = 0; i < m_spec.arrays.size(); ++i) in isUnalignedBufferStrideTest()
2205 if (m_spec.arrays[i].storage == Array::STORAGE_BUFFER) in isUnalignedBufferStrideTest()
2207 …const bool inputTypePacked = m_spec.arrays[i].inputType == Array::INPUTTYPE_UNSIGNED_INT_2_10_10_1… in isUnalignedBufferStrideTest()
2209 int dataTypeSize = Array::inputTypeSize(m_spec.arrays[i].inputType); in isUnalignedBufferStrideTest()
2213 if (m_spec.arrays[i].stride % dataTypeSize != 0) in isUnalignedBufferStrideTest()