Lines Matching refs:vtx

224 	std::ostringstream vtx;
225 vtx << "#version 300 es\n";
226 vtx << "in highp vec4 a_position;\n";
227 vtx << "in highp vec4 a_coords;\n";
229 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n";
231 vtx << "uniform mediump int ui_four;\n";
232 vtx << "out ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n";
233 vtx << "\n";
234 vtx << "void main()\n";
235 vtx << "{\n";
236 vtx << " gl_Position = a_position;\n";
239 vtx << " var[0] = ${VAR_TYPE}(a_coords);\n";
240 vtx << " var[1] = ${VAR_TYPE}(a_coords) * 0.5;\n";
241 vtx << " var[2] = ${VAR_TYPE}(a_coords) * 0.25;\n";
242 vtx << " var[3] = ${VAR_TYPE}(a_coords) * 0.125;\n";
246 vtx << " var[ui_zero] = ${VAR_TYPE}(a_coords);\n";
247 vtx << " var[ui_one] = ${VAR_TYPE}(a_coords) * 0.5;\n";
248 vtx << " var[ui_two] = ${VAR_TYPE}(a_coords) * 0.25;\n";
249 vtx << " var[ui_three] = ${VAR_TYPE}(a_coords) * 0.125;\n";
253 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n";
254 vtx << " for (int i = 0; i < 4; i++)\n";
255 vtx << " {\n";
256 vtx << " var[i] = ${VAR_TYPE}(coords);\n";
257 vtx << " coords = coords * 0.5;\n";
258 vtx << " }\n";
263 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n";
264 vtx << " for (int i = 0; i < ui_four; i++)\n";
265 vtx << " {\n";
266 vtx << " var[i] = ${VAR_TYPE}(coords);\n";
267 vtx << " coords = coords * 0.5;\n";
268 vtx << " }\n";
270 vtx << "}\n";
328 StringTemplate vertTemplate(vtx.str().c_str());
339 std::ostringstream vtx;
341 std::ostringstream& op = isVertexCase ? vtx : frag;
343 vtx << "#version 300 es\n";
346 vtx << "in highp vec4 a_position;\n";
347 vtx << "in highp vec4 a_coords;\n";
352 vtx << "out mediump vec4 v_color;\n";
357 vtx << "out mediump vec4 v_coords;\n";
368 vtx << "\n";
369 vtx << "void main()\n";
370 vtx << "{\n";
371 vtx << " gl_Position = a_position;\n";
407 vtx << " v_color = vec4(res${PADDING});\n";
412 vtx << " v_coords = a_coords;\n";
416 vtx << "}\n";
434 StringTemplate vertTemplate(vtx.str().c_str());
445 std::ostringstream vtx;
447 std::ostringstream& op = isVertexCase ? vtx : frag;
449 vtx << "#version 300 es\n";
452 vtx << "in highp vec4 a_position;\n";
453 vtx << "in highp vec4 a_coords;\n";
458 vtx << "out mediump vec4 v_color;\n";
463 vtx << "out mediump vec4 v_coords;\n";
473 vtx << "\n";
474 vtx << "void main()\n";
475 vtx << "{\n";
476 vtx << " gl_Position = a_position;\n";
551 vtx << " v_color = vec4(res${PADDING});\n";
556 vtx << " v_coords = a_coords;\n";
560 vtx << "}\n";
578 StringTemplate vertTemplate(vtx.str().c_str());
605 std::ostringstream vtx;
607 std::ostringstream& op = isVertexCase ? vtx : frag;
612 vtx << "#version 300 es\n";
615 vtx << "in highp vec4 a_position;\n";
616 vtx << "in highp vec4 a_coords;\n";
621 vtx << "out mediump vec3 v_color;\n";
626 vtx << "out mediump vec4 v_coords;\n";
642 vtx << "\n";
643 vtx << "void main()\n";
644 vtx << "{\n";
645 vtx << " gl_Position = a_position;\n";
738 vtx << " v_color = vec3(res);\n";
743 vtx << " v_coords = a_coords;\n";
747 vtx << "}\n";
760 StringTemplate vertTemplate(vtx.str().c_str());
805 std::ostringstream vtx;
807 std::ostringstream& op = isVertexCase ? vtx : frag;
814 vtx << "#version 300 es\n";
817 vtx << "in highp vec4 a_position;\n";
818 vtx << "in highp vec4 a_coords;\n";
823 vtx << "out mediump vec4 v_color;\n";
828 vtx << "out mediump vec4 v_coords;\n";
844 vtx << "\n";
845 vtx << "void main()\n";
846 vtx << "{\n";
847 vtx << " gl_Position = a_position;\n";
922 vtx << " v_color = vec4(res${PADDING});\n";
927 vtx << " v_coords = a_coords;\n";
931 vtx << "}\n";
947 StringTemplate vertTemplate(vtx.str().c_str());