Lines Matching refs:vtx

258 	std::ostringstream vtx;
259 vtx << "attribute highp vec4 a_position;\n";
260 vtx << "attribute highp vec4 a_coords;\n";
262 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n";
264 vtx << "uniform mediump int ui_four;\n";
265 vtx << "varying ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n";
266 vtx << "\n";
267 vtx << "void main()\n";
268 vtx << "{\n";
269 vtx << " gl_Position = a_position;\n";
272 vtx << " var[0] = ${VAR_TYPE}(a_coords);\n";
273 vtx << " var[1] = ${VAR_TYPE}(a_coords) * 0.5;\n";
274 vtx << " var[2] = ${VAR_TYPE}(a_coords) * 0.25;\n";
275 vtx << " var[3] = ${VAR_TYPE}(a_coords) * 0.125;\n";
279 vtx << " var[ui_zero] = ${VAR_TYPE}(a_coords);\n";
280 vtx << " var[ui_one] = ${VAR_TYPE}(a_coords) * 0.5;\n";
281 vtx << " var[ui_two] = ${VAR_TYPE}(a_coords) * 0.25;\n";
282 vtx << " var[ui_three] = ${VAR_TYPE}(a_coords) * 0.125;\n";
286 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n";
287 vtx << " for (int i = 0; i < 4; i++)\n";
288 vtx << " {\n";
289 vtx << " var[i] = ${VAR_TYPE}(coords);\n";
290 vtx << " coords = coords * 0.5;\n";
291 vtx << " }\n";
296 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n";
297 vtx << " for (int i = 0; i < ui_four; i++)\n";
298 vtx << " {\n";
299 vtx << " var[i] = ${VAR_TYPE}(coords);\n";
300 vtx << " coords = coords * 0.5;\n";
301 vtx << " }\n";
303 vtx << "}\n";
359 StringTemplate vertTemplate(vtx.str().c_str());
381 std::ostringstream vtx;
383 std::ostringstream& op = isVertexCase ? vtx : frag;
385 vtx << "attribute highp vec4 a_position;\n";
386 vtx << "attribute highp vec4 a_coords;\n";
390 vtx << "varying mediump vec4 v_color;\n";
395 vtx << "varying mediump vec4 v_coords;\n";
406 vtx << "\n";
407 vtx << "void main()\n";
408 vtx << "{\n";
409 vtx << " gl_Position = a_position;\n";
445 vtx << " v_color = vec4(res${PADDING});\n";
450 vtx << " v_coords = a_coords;\n";
454 vtx << "}\n";
472 StringTemplate vertTemplate(vtx.str().c_str());
491 std::ostringstream vtx;
493 std::ostringstream& op = isVertexCase ? vtx : frag;
495 vtx << "attribute highp vec4 a_position;\n";
496 vtx << "attribute highp vec4 a_coords;\n";
500 vtx << "varying mediump vec4 v_color;\n";
505 vtx << "varying mediump vec4 v_coords;\n";
515 vtx << "\n";
516 vtx << "void main()\n";
517 vtx << "{\n";
518 vtx << " gl_Position = a_position;\n";
619 vtx << " v_color = vec4(res${PADDING});\n";
625 vtx << " v_coords = a_coords;\n";
629 vtx << "}\n";
656 StringTemplate vertTemplate(vtx.str().c_str());
695 std::ostringstream vtx;
697 std::ostringstream& op = isVertexCase ? vtx : frag;
702 vtx << "attribute highp vec4 a_position;\n";
703 vtx << "attribute highp vec4 a_coords;\n";
707 vtx << "varying mediump vec3 v_color;\n";
712 vtx << "varying mediump vec4 v_coords;\n";
728 vtx << "\n";
729 vtx << "void main()\n";
730 vtx << "{\n";
731 vtx << " gl_Position = a_position;\n";
824 vtx << " v_color = vec3(res);\n";
829 vtx << " v_coords = a_coords;\n";
833 vtx << "}\n";
846 StringTemplate vertTemplate(vtx.str().c_str());
881 std::ostringstream vtx;
883 std::ostringstream& op = isVertexCase ? vtx : frag;
889 vtx << "attribute highp vec4 a_position;\n";
890 vtx << "attribute highp vec4 a_coords;\n";
894 vtx << "varying mediump vec4 v_color;\n";
899 vtx << "varying mediump vec4 v_coords;\n";
915 vtx << "\n";
916 vtx << "void main()\n";
917 vtx << "{\n";
918 vtx << " gl_Position = a_position;\n";
993 vtx << " v_color = vec4(res${PADDING});\n";
998 vtx << " v_coords = a_coords;\n";
1002 vtx << "}\n";
1018 StringTemplate vertTemplate(vtx.str().c_str());