Lines Matching defs:frag
316 std::ostringstream frag;
317 std::ostringstream& op = isVertexCase ? vtx : frag;
320 frag << "#version 310 es\n";
324 frag << "layout(location=0) out mediump vec4 o_color;\n";
332 frag << "layout(location=0) in mediump vec3 v_color;\n";
337 frag << "layout(location=0) in mediump vec4 v_coords;\n";
342 frag << "layout(location=1) in mediump float v_one;\n";
386 frag << "\n";
387 frag << "void main()\n";
388 frag << "{\n";
393 frag << " ${PRECISION} vec4 coords = v_coords;\n";
403 frag << " ${COUNTER_PRECISION} int one = int(v_one + 0.5);\n";
410 frag << " ${COUNTER_PRECISION} float one = v_one;\n";
500 frag << " o_color = vec4(v_color.rgb, 1.0);\n";
505 frag << " o_color = vec4(res.rgb, 1.0);\n";
512 frag << "}\n";
521 tcu::StringTemplate fragTemplate(frag.str());
539 std::ostringstream frag;
540 std::ostringstream& op = isVertexCase ? vtx : frag;
546 frag << "#version 310 es\n";
550 frag << "layout(location=0) out mediump vec4 o_color;\n";
558 frag << "layout(location=0) in mediump vec3 v_color;\n";
563 frag << "layout(location=0) in mediump vec4 v_coords;\n";
568 frag << "layout(location=1) in mediump float v_one;\n";
621 frag << "\n";
622 frag << "void main()\n";
623 frag << "{\n";
630 frag << " ${COUNTER_PRECISION} int one = int(v_one + 0.5);\n";
636 frag << " ${PRECISION} vec4 coords = v_coords;\n";
1404 frag << " o_color = vec4(v_color.rgb, 1.0);\n";
1409 frag << " o_color = vec4(res.rgb, 1.0);\n";
1416 frag << "}\n";
1465 tcu::StringTemplate fragTemplate(frag.str());