Lines Matching refs:frag
126 std::ostringstream vert, frag; in genSources() local
131 frag << "#version 300 es\n"; in genSources()
139 frag << "flat in highp int v_iterCount;\n"; in genSources()
143 (isVertCase ? vert : frag) << "uniform highp int u_iterCount;\n"; in genSources()
148 frag << "in mediump vec4 v_color;\n"; in genSources()
151 frag << "out mediump vec4 o_color;\n"; in genSources()
160 frag << "\nvoid main (void)\n{\n"; in genSources()
167 std::ostringstream& op = isVertCase ? vert : frag; in genSources()
198 frag << " o_color = v_color;\n"; in genSources()
201 frag << " o_color = color;\n"; in genSources()
204 frag << "}\n"; in genSources()
206 return glu::ProgramSources() << glu::VertexSource(vert.str()) << glu::FragmentSource(frag.str()); in genSources()