• Home
  • Raw
  • Download

Lines Matching refs:ct

85         for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) {  in getExistingState()  local
87 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) { in getExistingState()
88 Allocation *a = mRSProgram->mHal.state.textures[ct]; in getExistingState()
97 if (texType != returnKey->mTextureTargets[ct]) { in getExistingState()
125 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in init() local
126 initAddUserElement(mRSProgram->mHal.state.inputElements[ct], mAttribNames, in init()
129 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in init() local
130 initAddUserElement(mRSProgram->mHal.state.constantTypes[ct]->getElement(), in init()
135 for (uint32_t ct=0; ct < mRSProgram->mHal.state.texturesCount; ct++) { in init() local
137 mUniformNames[uniformCount].append(textureNames[ct], textureNamesLength[ct]); in init()
145 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in getGLSLInputString() local
146 const Element *e = mRSProgram->mHal.state.inputElements[ct]; in getGLSLInputString()
169 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in appendAttributes() local
170 const Element *e = mRSProgram->mHal.state.inputElements[ct]; in appendAttributes()
197 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) { in appendTextures() local
198 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) { in appendTextures()
199 Allocation *a = mRSProgram->mHal.state.textures[ct]; in appendTextures()
206 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_EXTERNAL_OES; in appendTextures()
209 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_2D; in appendTextures()
213 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_CUBE_MAP; in appendTextures()
216 mShader.append(mTextureNames[ct]); in appendTextures()
279 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in appendUserConstants() local
280 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in appendUserConstants()
483 for (uint32_t ct=0; ct < numTexturesToBind; ct++) { in setupTextures() local
484 RSD_CALL_GL(glActiveTexture, GL_TEXTURE0 + ct); in setupTextures()
485 RSD_CALL_GL(glUniform1i, sc->fragUniformSlot(mTextureUniformIndexStart + ct), ct); in setupTextures()
487 if (!mRSProgram->mHal.state.textures[ct]) { in setupTextures()
489 RSD_CALL_GL(glBindTexture, mCurrentState->mTextureTargets[ct], 0); in setupTextures()
493 DrvAllocation *drvTex = (DrvAllocation *)mRSProgram->mHal.state.textures[ct]->mHal.drv; in setupTextures()
495 if (mCurrentState->mTextureTargets[ct] != GL_TEXTURE_2D && in setupTextures()
496 mCurrentState->mTextureTargets[ct] != GL_TEXTURE_CUBE_MAP && in setupTextures()
497 mCurrentState->mTextureTargets[ct] != GL_TEXTURE_EXTERNAL_OES) { in setupTextures()
499 this, ct); in setupTextures()
502 RSD_CALL_GL(glBindTexture, mCurrentState->mTextureTargets[ct], drvTex->textureID); in setupTextures()
504 if (mRSProgram->mHal.state.samplers[ct]) { in setupTextures()
505 setupSampler(rsc, mRSProgram->mHal.state.samplers[ct], in setupTextures()
506 mRSProgram->mHal.state.textures[ct]); in setupTextures()
508 RSD_CALL_GL(glTexParameteri, mCurrentState->mTextureTargets[ct], in setupTextures()
510 RSD_CALL_GL(glTexParameteri, mCurrentState->mTextureTargets[ct], in setupTextures()
512 RSD_CALL_GL(glTexParameteri, mCurrentState->mTextureTargets[ct], in setupTextures()
514 RSD_CALL_GL(glTexParameteri, mCurrentState->mTextureTargets[ct], in setupTextures()
528 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in setupUserConstants() local
529 Allocation *alloc = mRSProgram->mHal.state.constants[ct]; in setupUserConstants()
533 this, ct); in setupUserConstants()
539 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in setupUserConstants()
558 slot, offset, ct, field, uidx, fieldName); in setupUserConstants()
581 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in initAttribAndUniformArray() local
582 const Element *elem = mRSProgram->mHal.state.inputElements[ct]; in initAttribAndUniformArray()
587 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in initAttribAndUniformArray() local
588 const Element *elem = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in initAttribAndUniformArray()
608 for (uint32_t ct=0; ct < e->mHal.state.fieldsCount; ct++) { in initAddUserElement() local
609 const Element *ce = e->mHal.state.fields[ct]; in initAddUserElement()
614 tmp.append(e->mHal.state.fieldNames[ct]); in initAddUserElement()
617 arrayLengths[*count] = e->mHal.state.fieldArraySizes[ct]; in initAddUserElement()