• Home
  • Raw
  • Download

Lines Matching refs:ct

81         for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) {  in getExistingState()  local
83 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) { in getExistingState()
84 Allocation *a = mRSProgram->mHal.state.textures[ct]; in getExistingState()
93 if (texType != returnKey->mTextureTargets[ct]) { in getExistingState()
121 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in init() local
122 initAddUserElement(mRSProgram->mHal.state.inputElements[ct], mAttribNames, in init()
125 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in init() local
126 initAddUserElement(mRSProgram->mHal.state.constantTypes[ct]->getElement(), in init()
131 for (uint32_t ct=0; ct < mRSProgram->mHal.state.texturesCount; ct++) { in init() local
133 mUniformNames[uniformCount].append(textureNames[ct], textureNamesLength[ct]); in init()
141 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in getGLSLInputString() local
142 const Element *e = mRSProgram->mHal.state.inputElements[ct]; in getGLSLInputString()
165 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in appendAttributes() local
166 const Element *e = mRSProgram->mHal.state.inputElements[ct]; in appendAttributes()
193 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) { in appendTextures() local
194 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) { in appendTextures()
195 Allocation *a = mRSProgram->mHal.state.textures[ct]; in appendTextures()
202 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_EXTERNAL_OES; in appendTextures()
205 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_2D; in appendTextures()
209 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_CUBE_MAP; in appendTextures()
212 mShader.append(mTextureNames[ct]); in appendTextures()
275 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in appendUserConstants() local
276 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in appendUserConstants()
472 for (uint32_t ct=0; ct < numTexturesToBind; ct++) { in setupTextures() local
473 RSD_CALL_GL(glActiveTexture, GL_TEXTURE0 + ct); in setupTextures()
474 RSD_CALL_GL(glUniform1i, sc->fragUniformSlot(mTextureUniformIndexStart + ct), ct); in setupTextures()
476 if (!mRSProgram->mHal.state.textures[ct]) { in setupTextures()
478 RSD_CALL_GL(glBindTexture, mCurrentState->mTextureTargets[ct], 0); in setupTextures()
482 DrvAllocation *drvTex = (DrvAllocation *)mRSProgram->mHal.state.textures[ct]->mHal.drv; in setupTextures()
484 if (mCurrentState->mTextureTargets[ct] != GL_TEXTURE_2D && in setupTextures()
485 mCurrentState->mTextureTargets[ct] != GL_TEXTURE_CUBE_MAP && in setupTextures()
486 mCurrentState->mTextureTargets[ct] != GL_TEXTURE_EXTERNAL_OES) { in setupTextures()
488 (uint)this, ct); in setupTextures()
491 RSD_CALL_GL(glBindTexture, mCurrentState->mTextureTargets[ct], drvTex->textureID); in setupTextures()
493 if (mRSProgram->mHal.state.samplers[ct]) { in setupTextures()
494 setupSampler(rsc, mRSProgram->mHal.state.samplers[ct], in setupTextures()
495 mRSProgram->mHal.state.textures[ct]); in setupTextures()
497 RSD_CALL_GL(glTexParameteri, mCurrentState->mTextureTargets[ct], in setupTextures()
499 RSD_CALL_GL(glTexParameteri, mCurrentState->mTextureTargets[ct], in setupTextures()
501 RSD_CALL_GL(glTexParameteri, mCurrentState->mTextureTargets[ct], in setupTextures()
503 RSD_CALL_GL(glTexParameteri, mCurrentState->mTextureTargets[ct], in setupTextures()
517 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in setupUserConstants() local
518 Allocation *alloc = mRSProgram->mHal.state.constants[ct]; in setupUserConstants()
522 (uint32_t)this, ct); in setupUserConstants()
529 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in setupUserConstants()
548 slot, offset, ct, field, uidx, fieldName); in setupUserConstants()
571 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in initAttribAndUniformArray() local
572 const Element *elem = mRSProgram->mHal.state.inputElements[ct]; in initAttribAndUniformArray()
577 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in initAttribAndUniformArray() local
578 const Element *elem = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in initAttribAndUniformArray()
597 for (uint32_t ct=0; ct < e->mHal.state.fieldsCount; ct++) { in initAddUserElement() local
598 const Element *ce = e->mHal.state.fields[ct]; in initAddUserElement()
603 tmp.append(e->mHal.state.fieldNames[ct]); in initAddUserElement()
606 arrayLengths[*count] = e->mHal.state.fieldArraySizes[ct]; in initAddUserElement()