Lines Matching refs:texNdx
146 for (int texNdx = 0; texNdx < m_numTextures; texNdx++)
147 fragSrc << "uniform sampler2D u_sampler" << texNdx << ";\n";
152 for (int texNdx = 0; texNdx < m_numTextures; texNdx++)
153 fragSrc << "\t" << (texNdx == 0 ? "lowp vec4 r = " : "r += ") << "texture2D(u_sampler" << texNdx << ", v_coords);\n";
161 for (int texNdx = 0; texNdx < m_numTextures; texNdx++)
165 const IVec4& sw = swizzles[texNdx % DE_LENGTH_OF_ARRAY(swizzles)];
198 for (int texNdx = 0; texNdx < m_numTextures; texNdx++)
200 int samplerLoc = gl.getUniformLocation(program, (string("u_sampler") + de::toString(texNdx)).c_str());
201 gl.uniform1i(samplerLoc, texNdx);
215 for (int texNdx = 0; texNdx < m_numTextures; texNdx++)
217 gl.activeTexture(GL_TEXTURE0 + texNdx);
218 gl.bindTexture(GL_TEXTURE_2D, m_textures[texNdx]->getGLTexture());