Lines Matching refs:texNdx
157 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in init() local
158 …onName(samplerPrec) << " " << glu::getDataTypeName(samplerType) << " u_sampler" << texNdx << ";\n"; in init()
163 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in init() local
165 if (texNdx == 0) in init()
173 fragSrc << "texture(u_sampler" << texNdx << ", v_coords)"; in init()
187 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in init() local
191 const IVec4& sw = swizzles[texNdx % DE_LENGTH_OF_ARRAY(swizzles)]; in init()
225 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in setupProgram() local
227 …int samplerLoc = gl.getUniformLocation(program, (string("u_sampler") + de::toString(texNdx)).c_str… in setupProgram()
228 gl.uniform1i(samplerLoc, texNdx); in setupProgram()
242 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in setupRenderState() local
244 gl.activeTexture(GL_TEXTURE0 + texNdx); in setupRenderState()
245 gl.bindTexture(GL_TEXTURE_2D, m_textures[texNdx]->getGLTexture()); in setupRenderState()