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());
638 std::string vtx = glu::getGLSLVersionDeclaration(glslVersion) + std::string("\n"
667 vtx.c_str(), frag.c_str());
702 std::ostringstream vtx;
704 std::ostringstream& op = isVertexCase ? vtx : frag;
709 vtx << glu::getGLSLVersionDeclaration(glslVersion) << "\n";
712 vtx << "in highp vec4 a_position;\n";
713 vtx << "in highp vec4 a_coords;\n";
718 vtx << "out mediump vec3 v_color;\n";
723 vtx << "out mediump vec4 v_coords;\n";
742 vtx << "\n";
743 vtx << "void main()\n";
744 vtx << "{\n";
745 vtx << " gl_Position = a_position;\n";
856 vtx << " v_color = vec3(res);\n";
861 vtx << " v_coords = a_coords;\n";
865 vtx << "}\n";
878 StringTemplate vertTemplate(vtx.str().c_str());
968 std::ostringstream vtx;
970 std::ostringstream& op = isVertexCase ? vtx : frag;
977 vtx << glu::getGLSLVersionDeclaration(glslVersion) << "\n";
980 vtx << "in highp vec4 a_position;\n";
981 vtx << "in highp vec4 a_coords;\n";
986 vtx << "out mediump vec4 v_color;\n";
991 vtx << "out mediump vec4 v_coords;\n";
1010 vtx << "\n";
1011 vtx << "void main()\n";
1012 vtx << "{\n";
1013 vtx << " gl_Position = a_position;\n";
1100 vtx << " v_color = vec4(res${PADDING});\n";
1105 vtx << " v_coords = a_coords;\n";
1109 vtx << "}\n";
1125 StringTemplate vertTemplate(vtx.str().c_str());