Lines Matching refs:ct
71 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in init() local
72 …initAddUserElement(mRSProgram->mHal.state.inputElements[ct].get(), mAttribNames, NULL, &attribCoun… in init()
74 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in init() local
75 …initAddUserElement(mRSProgram->mHal.state.constantTypes[ct]->getElement(), mUniformNames, mUniform… in init()
80 for (uint32_t ct=0; ct < mRSProgram->mHal.state.texturesCount; ct++) { in init() local
81 snprintf(buf, sizeof(buf), "UNI_Tex%i", ct); in init()
91 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in getGLSLInputString() local
92 const Element *e = mRSProgram->mHal.state.inputElements[ct].get(); in getGLSLInputString()
115 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in appendAttributes() local
116 const Element *e = mRSProgram->mHal.state.inputElements[ct].get(); in appendAttributes()
144 for (uint32_t ct=0; ct < mRSProgram->mHal.state.texturesCount; ct++) { in appendTextures() local
145 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) { in appendTextures()
146 snprintf(buf, sizeof(buf), "uniform sampler2D UNI_Tex%i;\n", ct); in appendTextures()
147 mTextureTargets[ct] = GL_TEXTURE_2D; in appendTextures()
149 snprintf(buf, sizeof(buf), "uniform samplerCube UNI_Tex%i;\n", ct); in appendTextures()
150 mTextureTargets[ct] = GL_TEXTURE_CUBE_MAP; in appendTextures()
212 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in appendUserConstants() local
213 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in appendUserConstants()
413 for (uint32_t ct=0; ct < numTexturesToBind; ct++) { in setupTextures() local
414 RSD_CALL_GL(glActiveTexture, GL_TEXTURE0 + ct); in setupTextures()
415 RSD_CALL_GL(glUniform1i, sc->fragUniformSlot(mTextureUniformIndexStart + ct), ct); in setupTextures()
417 if (!mRSProgram->mHal.state.textures[ct].get()) { in setupTextures()
419 RSD_CALL_GL(glBindTexture, mTextureTargets[ct], 0); in setupTextures()
423 DrvAllocation *drvTex = (DrvAllocation *)mRSProgram->mHal.state.textures[ct]->mHal.drv; in setupTextures()
425 … LOGE("Attempting to bind unknown texture to shader id %u, texture unit %u", (uint)this, ct); in setupTextures()
430 if (mRSProgram->mHal.state.samplers[ct].get()) { in setupTextures()
431 setupSampler(rsc, mRSProgram->mHal.state.samplers[ct].get(), in setupTextures()
432 mRSProgram->mHal.state.textures[ct].get()); in setupTextures()
450 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in setupUserConstants() local
451 Allocation *alloc = mRSProgram->mHal.state.constants[ct].get(); in setupUserConstants()
454 (uint32_t)this, ct); in setupUserConstants()
460 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in setupUserConstants()
483 slot, offset, ct, field, uidx, fieldName); in setupUserConstants()
506 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in initAttribAndUniformArray() local
507 const Element *elem = mRSProgram->mHal.state.inputElements[ct].get(); in initAttribAndUniformArray()
516 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in initAttribAndUniformArray() local
517 const Element *elem = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in initAttribAndUniformArray()
544 for (uint32_t ct=0; ct < e->getFieldCount(); ct++) { in initAddUserElement() local
545 const Element *ce = e->getField(ct); in initAddUserElement()
548 } else if (e->getFieldName(ct)[0] != '#') { in initAddUserElement()
550 tmp.append(e->getFieldName(ct)); in initAddUserElement()
553 arrayLengths[*count] = e->getFieldArraySize(ct); in initAddUserElement()