Lines Matching refs:frag
247 std::ostringstream frag;
248 std::ostringstream& op = isVertexCase ? vtx : frag;
251 frag << "#version 300 es\n";
255 frag << "layout(location = 0) out mediump vec4 o_color;\n";
263 frag << "in mediump vec3 v_color;\n";
268 frag << "in mediump vec4 v_coords;\n";
273 frag << "in mediump float v_one;\n";
300 frag << "\n";
301 frag << "void main()\n";
302 frag << "{\n";
307 frag << " ${PRECISION} vec4 coords = v_coords;\n";
316 frag << " ${COUNTER_PRECISION} int one = int(v_one + 0.5);\n";
323 frag << " ${COUNTER_PRECISION} float one = v_one;\n";
411 frag << " o_color = vec4(v_color.rgb, 1.0);\n";
416 frag << " o_color = vec4(res.rgb, 1.0);\n";
423 frag << "}\n";
432 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";
462 frag << "in mediump vec3 v_color;\n";
467 frag << "in mediump vec4 v_coords;\n";
472 frag << "in mediump float v_one;\n";
491 frag << "\n";
492 frag << "void main()\n";
493 frag << "{\n";
500 frag << " ${COUNTER_PRECISION} int one = int(v_one + 0.5);\n";
506 frag << " ${PRECISION} vec4 coords = v_coords;\n";
1063 frag << " o_color = vec4(v_color.rgb, 1.0);\n";
1068 frag << " o_color = vec4(res.rgb, 1.0);\n";
1075 frag << "}\n";
1120 StringTemplate fragTemplate(frag.str().c_str());