• Home
  • Raw
  • Download

Lines Matching refs:ct

45     for (uint32_t ct=0; ct < prog->getUniformCount(); ct++) {  in updateUniformArrayData()  local
46 if (data[ct].slot >= 0 && data[ct].arraySize > 1) { in updateUniformArrayData()
49 if (prog->getUniformName(ct) == uniformList[ui]->name) { in updateUniformArrayData()
50 data[ct].arraySize = (uint32_t)uniformList[ui]->arraySize; in updateUniformArrayData()
58 prog->getUniformName(ct).string(), data[ct].slot, data[ct].arraySize); in updateUniformArrayData()
64 for (uint32_t ct=0; ct < prog->getUniformCount(); ct++) { in populateUniformData() local
65 data[ct].slot = glGetUniformLocation(linkedID, prog->getUniformName(ct)); in populateUniformData()
66 data[ct].arraySize = prog->getUniformArraySize(ct); in populateUniformData()
72 for (uint32_t ct=0; ct < vtx->getUniformCount(); ct++) { in hasArrayUniforms() local
73 if (data[ct].slot >= 0 && data[ct].arraySize > 1) { in hasArrayUniforms()
78 for (uint32_t ct=0; ct < frag->getUniformCount(); ct++) { in hasArrayUniforms() local
79 if (data[ct].slot >= 0 && data[ct].arraySize > 1) { in hasArrayUniforms()
124 for (uint32_t ct = 0; ct < entryCount; ct ++) { in link() local
125 if ((mEntries[ct]->vtx == vtx->getShaderID()) && in link()
126 (mEntries[ct]->frag == frag->getShaderID())) { in link()
129 glUseProgram(mEntries[ct]->program); in link()
130 mCurrent = mEntries[ct]; in link()
179 for (uint32_t ct=0; ct < e->vtxAttrCount; ct++) { in link() local
180 e->vtxAttrs[ct].slot = glGetAttribLocation(pgm, vtx->getAttribName(ct)); in link()
181 e->vtxAttrs[ct].name = vtx->getAttribName(ct).string(); in link()
183 … LOGV("vtx A %i, %s = %d\n", ct, vtx->getAttribName(ct).string(), e->vtxAttrs[ct].slot); in link()
203 for (uint32_t ct = 0; ct < (uint32_t)numUniforms; ct++) { in link() local
204 uniformList[ct] = new UniformQueryData(maxNameLength); in link()
205 glGetActiveUniform(pgm, ct, maxNameLength, &uniformList[ct]->writtenLength, in link()
206 &uniformList[ct]->arraySize, &uniformList[ct]->type, in link()
207 uniformList[ct]->name); in link()
224 for (uint32_t ct = 0; ct < (uint32_t)numUniforms; ct++) { in link() local
225 delete uniformList[ct]; in link()
240 for (uint32_t ct=0; ct < mCurrent->vtxAttrCount; ct++) { in vtxAttribSlot() local
241 if (attrName == mCurrent->vtxAttrs[ct].name) { in vtxAttribSlot()
242 return mCurrent->vtxAttrs[ct].slot; in vtxAttribSlot()
250 for (int32_t ct = 0; ct < numEntries; ct ++) { in cleanupVertex() local
251 if (mEntries[ct]->vtx == id) { in cleanupVertex()
252 glDeleteProgram(mEntries[ct]->program); in cleanupVertex()
254 delete mEntries[ct]; in cleanupVertex()
255 mEntries.removeAt(ct); in cleanupVertex()
257 ct --; in cleanupVertex()
264 for (int32_t ct = 0; ct < numEntries; ct ++) { in cleanupFragment() local
265 if (mEntries[ct]->frag == id) { in cleanupFragment()
266 glDeleteProgram(mEntries[ct]->program); in cleanupFragment()
268 delete mEntries[ct]; in cleanupFragment()
269 mEntries.removeAt(ct); in cleanupFragment()
271 ct --; in cleanupFragment()
277 for (uint32_t ct=0; ct < mEntries.size(); ct++) { in cleanupAll() local
278 glDeleteProgram(mEntries[ct]->program); in cleanupAll()
279 free(mEntries[ct]); in cleanupAll()