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