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