Lines Matching refs:vtx

251 	std::ostringstream vtx;
252 vtx << glu::getGLSLVersionDeclaration(glslVersion) << "\n";
253 vtx << "in highp vec4 a_position;\n";
254 vtx << "in highp vec4 a_coords;\n";
256 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n";
258 vtx << "uniform mediump int ui_four;\n";
259 vtx << "out ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n";
260 vtx << "\n";
261 vtx << "void main()\n";
262 vtx << "{\n";
263 vtx << " gl_Position = a_position;\n";
266 vtx << " var[0] = ${VAR_TYPE}(a_coords);\n";
267 vtx << " var[1] = ${VAR_TYPE}(a_coords) * 0.5;\n";
268 vtx << " var[2] = ${VAR_TYPE}(a_coords) * 0.25;\n";
269 vtx << " var[3] = ${VAR_TYPE}(a_coords) * 0.125;\n";
273 vtx << " var[ui_zero] = ${VAR_TYPE}(a_coords);\n";
274 vtx << " var[ui_one] = ${VAR_TYPE}(a_coords) * 0.5;\n";
275 vtx << " var[ui_two] = ${VAR_TYPE}(a_coords) * 0.25;\n";
276 vtx << " var[ui_three] = ${VAR_TYPE}(a_coords) * 0.125;\n";
280 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n";
281 vtx << " for (int i = 0; i < 4; i++)\n";
282 vtx << " {\n";
283 vtx << " var[i] = ${VAR_TYPE}(coords);\n";
284 vtx << " coords = coords * 0.5;\n";
285 vtx << " }\n";
290 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n";
291 vtx << " for (int i = 0; i < ui_four; i++)\n";
292 vtx << " {\n";
293 vtx << " var[i] = ${VAR_TYPE}(coords);\n";
294 vtx << " coords = coords * 0.5;\n";
295 vtx << " }\n";
297 vtx << "}\n";
355 StringTemplate vertTemplate(vtx.str().c_str());
372 std::ostringstream vtx;
374 std::ostringstream& op = isVertexCase ? vtx : frag;
376 vtx << glu::getGLSLVersionDeclaration(glslVersion) << "\n";
379 vtx << "in highp vec4 a_position;\n";
380 vtx << "in highp vec4 a_coords;\n";
385 vtx << "out mediump vec4 v_color;\n";
390 vtx << "out mediump vec4 v_coords;\n";
401 vtx << "\n";
402 vtx << "void main()\n";
403 vtx << "{\n";
404 vtx << " gl_Position = a_position;\n";
440 vtx << " v_color = vec4(res${PADDING});\n";
445 vtx << " v_coords = a_coords;\n";
449 vtx << "}\n";
467 StringTemplate vertTemplate(vtx.str().c_str());
484 std::ostringstream vtx;
486 std::ostringstream& op = isVertexCase ? vtx : frag;
488 vtx << glu::getGLSLVersionDeclaration(glslVersion) << "\n";
491 vtx << "in highp vec4 a_position;\n";
492 vtx << "in highp vec4 a_coords;\n";
497 vtx << "out mediump vec4 v_color;\n";
502 vtx << "out mediump vec4 v_coords;\n";
512 vtx << "\n";
513 vtx << "void main()\n";
514 vtx << "{\n";
515 vtx << " gl_Position = a_position;\n";
590 vtx << " v_color = vec4(res${PADDING});\n";
595 vtx << " v_coords = a_coords;\n";
599 vtx << "}\n";
617 StringTemplate vertTemplate(vtx.str().c_str());
659 std::ostringstream vtx;
661 std::ostringstream& op = isVertexCase ? vtx : frag;
666 vtx << glu::getGLSLVersionDeclaration(glslVersion) << "\n";
669 vtx << "in highp vec4 a_position;\n";
670 vtx << "in highp vec4 a_coords;\n";
675 vtx << "out mediump vec3 v_color;\n";
680 vtx << "out mediump vec4 v_coords;\n";
699 vtx << "\n";
700 vtx << "void main()\n";
701 vtx << "{\n";
702 vtx << " gl_Position = a_position;\n";
813 vtx << " v_color = vec3(res);\n";
818 vtx << " v_coords = a_coords;\n";
822 vtx << "}\n";
835 StringTemplate vertTemplate(vtx.str().c_str());
925 std::ostringstream vtx;
927 std::ostringstream& op = isVertexCase ? vtx : frag;
934 vtx << glu::getGLSLVersionDeclaration(glslVersion) << "\n";
937 vtx << "in highp vec4 a_position;\n";
938 vtx << "in highp vec4 a_coords;\n";
943 vtx << "out mediump vec4 v_color;\n";
948 vtx << "out mediump vec4 v_coords;\n";
967 vtx << "\n";
968 vtx << "void main()\n";
969 vtx << "{\n";
970 vtx << " gl_Position = a_position;\n";
1057 vtx << " v_color = vec4(res${PADDING});\n";
1062 vtx << " v_coords = a_coords;\n";
1066 vtx << "}\n";
1082 StringTemplate vertTemplate(vtx.str().c_str());