Lines Matching refs:vtx
315 std::ostringstream vtx;
317 std::ostringstream& op = isVertexCase ? vtx : frag;
319 vtx << "#version 310 es\n";
322 vtx << "layout(location=0) in highp vec4 a_position;\n";
323 vtx << "layout(location=1) in highp vec4 a_coords;\n";
327 vtx << "layout(location=3) in mediump float a_one;\n";
331 vtx << "layout(location=0) out mediump vec3 v_color;\n";
336 vtx << "layout(location=0) out mediump vec4 v_coords;\n";
341 vtx << "layout(location=1) out mediump float v_one;\n";
381 vtx << "\n";
382 vtx << "void main()\n";
383 vtx << "{\n";
384 vtx << " gl_Position = a_position;\n";
391 vtx << " ${PRECISION} vec4 coords = a_coords;\n";
401 vtx << " ${COUNTER_PRECISION} int one = int(a_one + 0.5);\n";
408 vtx << " ${COUNTER_PRECISION} float one = a_one;\n";
499 vtx << " v_color = res.rgb;\n";
504 vtx << " v_coords = a_coords;\n";
508 vtx << " v_one = a_one;\n";
511 vtx << "}\n";
520 tcu::StringTemplate vertTemplate(vtx.str());
538 std::ostringstream vtx;
540 std::ostringstream& op = isVertexCase ? vtx : frag;
545 vtx << "#version 310 es\n";
548 vtx << "layout(location=0) in highp vec4 a_position;\n";
549 vtx << "layout(location=1) in highp vec4 a_coords;\n";
553 vtx << "layout(location=3) in mediump float a_one;\n";
557 vtx << "layout(location=0) out mediump vec3 v_color;\n";
562 vtx << "layout(location=0) out mediump vec4 v_coords;\n";
567 vtx << "layout(location=1) out mediump float v_one;\n";
616 vtx << "\n";
617 vtx << "void main()\n";
618 vtx << "{\n";
619 vtx << " gl_Position = a_position;\n";
628 vtx << " ${COUNTER_PRECISION} int one = int(a_one + 0.5);\n";
634 vtx << " ${PRECISION} vec4 coords = a_coords;\n";
1403 vtx << " v_color = res.rgb;\n";
1408 vtx << " v_coords = a_coords;\n";
1412 vtx << " v_one = a_one;\n";
1415 vtx << "}\n";
1464 tcu::StringTemplate vertTemplate(vtx.str());