Home | History | Annotate | Download | only in driver

Lines Matching refs:ct

45     for (uint32_t ct=0; ct < prog->getUniformCount(); ct++) {
46 if (data[ct].slot >= 0 && data[ct].arraySize > 1) {
49 if (prog->getUniformName(ct) == uniformList[ui]->name) {
50 data[ct].arraySize = (uint32_t)uniformList[ui]->arraySize;
58 prog->getUniformName(ct).string(), data[ct].slot, data[ct].arraySize);
64 for (uint32_t ct=0; ct < prog->getUniformCount(); ct++) {
65 data[ct].slot = glGetUniformLocation(linkedID, prog->getUniformName(ct));
66 data[ct].arraySize = prog->getUniformArraySize(ct);
72 for (uint32_t ct=0; ct < vtx->getUniformCount(); ct++) {
73 if (data[ct].slot >= 0 && data[ct].arraySize > 1) {
78 for (uint32_t ct=0; ct < frag->getUniformCount(); ct++) {
79 if (data[ct].slot >= 0 && data[ct].arraySize > 1) {
120 for (uint32_t ct = 0; ct < entryCount; ct ++) {
121 if ((mEntries[ct]->vtx == vID) && (mEntries[ct]->frag == fID)) {
123 //ALOGV("SC using program %i", mEntries[ct]->program);
124 glUseProgram(mEntries[ct]->program);
125 mCurrent = mEntries[ct];
126 //ALOGV("RsdShaderCache hit, using %i", ct);
171 for (uint32_t ct=0; ct < e->vtxAttrCount; ct++) {
172 e->vtxAttrs[ct].slot = glGetAttribLocation(pgm, vtx->getAttribName(ct));
173 e->vtxAttrs[ct].name = vtx->getAttribName(ct).string();
175 ALOGV("vtx A %i, %s = %d\n", ct, vtx->getAttribName(ct).string(), e->vtxAttrs[ct].slot);
195 for (uint32_t ct = 0; ct < (uint32_t)numUniforms; ct++) {
196 uniformList[ct] = new UniformQueryData(maxNameLength);
197 glGetActiveUniform(pgm, ct, maxNameLength, &uniformList[ct]->writtenLength,
198 &uniformList[ct]->arraySize, &uniformList[ct]->type,
199 uniformList[ct]->name);
200 //ALOGE("GL UNI idx=%u, arraySize=%u, name=%s", ct,
201 // uniformList[ct]->arraySize, uniformList[ct]->name);
216 for (uint32_t ct = 0; ct < (uint32_t)numUniforms; ct++) {
217 delete uniformList[ct];
232 for (uint32_t ct=0; ct < mCurrent->vtxAttrCount; ct++) {
233 if (attrName == mCurrent->vtxAttrs[ct].name) {
234 return mCurrent->vtxAttrs[ct].slot;
245 for (int32_t ct = 0; ct < numEntries; ct ++) {
246 if (mEntries[ct]->vtx == id) {
247 glDeleteProgram(mEntries[ct]->program);
249 delete mEntries[ct];
250 mEntries.removeAt(ct);
252 ct --;
263 for (int32_t ct = 0; ct < numEntries; ct ++) {
264 if (mEntries[ct]->frag == id) {
265 glDeleteProgram(mEntries[ct]->program);
267 delete mEntries[ct];
268 mEntries.removeAt(ct);
270 ct --;
277 for (uint32_t ct=0; ct < mEntries.size(); ct++) {
278 glDeleteProgram(mEntries[ct]->program);
279 free(mEntries[ct]);