Lines Matching refs:arr
180 float arr[4];
181 arr[0] = constCoords.x();
182 arr[1] = constCoords.x() * 0.5f;
183 arr[2] = constCoords.x() * 0.25f;
184 arr[3] = constCoords.x() * 0.125f;
185 gl.uniform1fv(arrLoc, 4, &arr[0]);
189 Vec2 arr[4];
190 arr[0] = constCoords.swizzle(0,1);
191 arr[1] = constCoords.swizzle(0,1) * 0.5f;
192 arr[2] = constCoords.swizzle(0,1) * 0.25f;
193 arr[3] = constCoords.swizzle(0,1) * 0.125f;
194 gl.uniform2fv(arrLoc, 4, arr[0].getPtr());
198 Vec3 arr[4];
199 arr[0] = constCoords.swizzle(0,1,2);
200 arr[1] = constCoords.swizzle(0,1,2) * 0.5f;
201 arr[2] = constCoords.swizzle(0,1,2) * 0.25f;
202 arr[3] = constCoords.swizzle(0,1,2) * 0.125f;
203 gl.uniform3fv(arrLoc, 4, arr[0].getPtr());
207 Vec4 arr[4];
208 arr[0] = constCoords.swizzle(0,1,2,3);
209 arr[1] = constCoords.swizzle(0,1,2,3) * 0.5f;
210 arr[2] = constCoords.swizzle(0,1,2,3) * 0.25f;
211 arr[3] = constCoords.swizzle(0,1,2,3) * 0.125f;
212 gl.uniform4fv(arrLoc, 4, arr[0].getPtr());
487 op << " ${PRECISION} ${VAR_TYPE} arr[${ARRAY_LEN}];\n";
490 op << " arr[0] = ${VAR_TYPE}(coords);\n";
491 op << " arr[1] = ${VAR_TYPE}(coords) * 0.5;\n";
492 op << " arr[2] = ${VAR_TYPE}(coords) * 0.25;\n";
493 op << " arr[3] = ${VAR_TYPE}(coords) * 0.125;\n";
497 op << " arr[ui_zero] = ${VAR_TYPE}(coords);\n";
498 op << " arr[ui_one] = ${VAR_TYPE}(coords) * 0.5;\n";
499 op << " arr[ui_two] = ${VAR_TYPE}(coords) * 0.25;\n";
500 op << " arr[ui_three] = ${VAR_TYPE}(coords) * 0.125;\n";
506 op << " arr[i] = ${VAR_TYPE}(coords);\n";
515 op << " arr[i] = ${VAR_TYPE}(coords);\n";
524 op << " res += arr[0];\n";
525 arr[1];\n";
526 op << " res += arr[2];\n";
527 op << " res += arr[3];\n";
531 op << " res += arr[ui_zero];\n";
532 op << " res += arr[ui_one];\n";
533 op << " res += arr[ui_two];\n";
534 op << " res += arr[ui_three];\n";
539 op << " res += arr[i];\n";
545 op << " res += arr[i];\n";