Home | History | Annotate | Download | only in functional

Lines Matching refs:frag

271 	std::ostringstream frag;
272 frag << "#version 300 es\n";
273 frag << "precision mediump int;\n";
274 frag << "layout(location = 0) out mediump vec4 o_color;\n";
276 frag << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n";
278 frag << "uniform int ui_four;\n";
279 frag << "in ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n";
280 frag << "\n";
281 frag << "void main()\n";
282 frag << "{\n";
283 frag << " ${PRECISION} ${VAR_TYPE} res = ${VAR_TYPE}(0.0);\n";
286 frag << " res += var[0];\n";
287 frag << " res += var[1];\n";
288 frag << " res += var[2];\n";
289 frag << " res += var[3];\n";
293 frag << " res += var[ui_zero];\n";
294 frag << " res += var[ui_one];\n";
295 frag << " res += var[ui_two];\n";
296 frag << " res += var[ui_three];\n";
300 frag << " for (int i = 0; i < 4; i++)\n";
301 frag << " res += var[i];\n";
306 frag << " for (int i = 0; i < ui_four; i++)\n";
307 frag << " res += var[i];\n";
309 frag << " o_color = vec4(res${PADDING});\n";
310 frag << "}\n";
328 StringTemplate fragTemplate(frag.str().c_str());
339 std::ostringstream frag;
340 std::ostringstream& op = isVertexCase ? vtx : frag;
343 frag << "#version 300 es\n";
347 frag << "layout(location = 0) out mediump vec4 o_color;\n";
352 frag << "in mediump vec4 v_color;\n";
357 frag << "in mediump vec4 v_coords;\n";
372 frag << "\n";
373 frag << "void main()\n";
374 frag << "{\n";
407 frag << " o_color = v_color;\n";
412 frag << " o_color = vec4(res${PADDING});\n";
416 frag << "}\n";
434 StringTemplate fragTemplate(frag.str().c_str());
445 std::ostringstream frag;
446 std::ostringstream& op = isVertexCase ? vtx : frag;
449 frag << "#version 300 es\n";
453 frag << "layout(location = 0) out mediump vec4 o_color;\n";
458 frag << "in mediump vec4 v_color;\n";
463 frag << "in mediump vec4 v_coords;\n";
477 frag << "\n";
478 frag << "void main()\n";
479 frag << "{\n";
551 frag << " o_color = v_color;\n";
556 frag << " o_color = vec4(res${PADDING});\n";
560 frag << "}\n";
578 StringTemplate fragTemplate(frag.str().c_str());
605 std::ostringstream frag;
606 std::ostringstream& op = isVertexCase ? vtx : frag;
612 frag << "#version 300 es\n";
616 frag << "layout(location = 0) out mediump vec4 o_color;\n";
621 frag << "in mediump vec3 v_color;\n";
626 frag << "in mediump vec4 v_coords;\n";
646 frag << "\n";
647 frag << "void main()\n";
648 frag << "{\n";
738 frag << " o_color = vec4(v_color.rgb, 1.0);\n";
743 frag << " o_color = vec4(vec3(res), 1.0);\n";
747 frag << "}\n";
760 StringTemplate fragTemplate(frag.str().c_str());
805 std::ostringstream frag;
806 std::ostringstream& op = isVertexCase ? vtx : frag;
814 frag << "#version 300 es\n";
818 frag << "layout(location = 0) out mediump vec4 o_color;\n";
823 frag << "in mediump vec4 v_color;\n";
828 frag << "in mediump vec4 v_coords;\n";
848 frag << "\n";
849 frag << "void main()\n";
850 frag << "{\n";
922 frag << " o_color = v_color;\n";
927 frag << " o_color = vec4(res${PADDING});\n";
931 frag << "}\n";
947 StringTemplate fragTemplate(frag.str().c_str());