Lines Matching refs:frag
299 std::ostringstream frag; in createVaryingArrayCase() local
300 frag << glu::getGLSLVersionDeclaration(glslVersion) << "\n"; in createVaryingArrayCase()
301 frag << "precision mediump int;\n"; in createVaryingArrayCase()
302 frag << "layout(location = 0) out mediump vec4 o_color;\n"; in createVaryingArrayCase()
304 frag << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n"; in createVaryingArrayCase()
306 frag << "uniform int ui_four;\n"; in createVaryingArrayCase()
307 frag << "in ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; in createVaryingArrayCase()
308 frag << "\n"; in createVaryingArrayCase()
309 frag << "void main()\n"; in createVaryingArrayCase()
310 frag << "{\n"; in createVaryingArrayCase()
311 frag << " ${PRECISION} ${VAR_TYPE} res = ${VAR_TYPE}(0.0);\n"; in createVaryingArrayCase()
314 frag << " res += var[0];\n"; in createVaryingArrayCase()
315 frag << " res += var[1];\n"; in createVaryingArrayCase()
316 frag << " res += var[2];\n"; in createVaryingArrayCase()
317 frag << " res += var[3];\n"; in createVaryingArrayCase()
321 frag << " res += var[ui_zero];\n"; in createVaryingArrayCase()
322 frag << " res += var[ui_one];\n"; in createVaryingArrayCase()
323 frag << " res += var[ui_two];\n"; in createVaryingArrayCase()
324 frag << " res += var[ui_three];\n"; in createVaryingArrayCase()
328 frag << " for (int i = 0; i < 4; i++)\n"; in createVaryingArrayCase()
329 frag << " res += var[i];\n"; in createVaryingArrayCase()
334 frag << " for (int i = 0; i < ui_four; i++)\n"; in createVaryingArrayCase()
335 frag << " res += var[i];\n"; in createVaryingArrayCase()
337 frag << " o_color = vec4(res${PADDING});\n"; in createVaryingArrayCase()
338 frag << "}\n"; in createVaryingArrayCase()
356 StringTemplate fragTemplate(frag.str().c_str()); in createVaryingArrayCase()
373 std::ostringstream frag; in createUniformArrayCase() local
374 std::ostringstream& op = isVertexCase ? vtx : frag; in createUniformArrayCase()
377 frag << glu::getGLSLVersionDeclaration(glslVersion) << "\n"; in createUniformArrayCase()
381 frag << "layout(location = 0) out mediump vec4 o_color;\n"; in createUniformArrayCase()
386 frag << "in mediump vec4 v_color;\n"; in createUniformArrayCase()
391 frag << "in mediump vec4 v_coords;\n"; in createUniformArrayCase()
406 frag << "\n"; in createUniformArrayCase()
407 frag << "void main()\n"; in createUniformArrayCase()
408 frag << "{\n"; in createUniformArrayCase()
441 frag << " o_color = v_color;\n"; in createUniformArrayCase()
446 frag << " o_color = vec4(res${PADDING});\n"; in createUniformArrayCase()
450 frag << "}\n"; in createUniformArrayCase()
468 StringTemplate fragTemplate(frag.str().c_str()); in createUniformArrayCase()
485 std::ostringstream frag; in createTmpArrayCase() local
486 std::ostringstream& op = isVertexCase ? vtx : frag; in createTmpArrayCase()
489 frag << glu::getGLSLVersionDeclaration(glslVersion) << "\n"; in createTmpArrayCase()
493 frag << "layout(location = 0) out mediump vec4 o_color;\n"; in createTmpArrayCase()
498 frag << "in mediump vec4 v_color;\n"; in createTmpArrayCase()
503 frag << "in mediump vec4 v_coords;\n"; in createTmpArrayCase()
517 frag << "\n"; in createTmpArrayCase()
518 frag << "void main()\n"; in createTmpArrayCase()
519 frag << "{\n"; in createTmpArrayCase()
591 frag << " o_color = v_color;\n"; in createTmpArrayCase()
596 frag << " o_color = vec4(res${PADDING});\n"; in createTmpArrayCase()
600 frag << "}\n"; in createTmpArrayCase()
618 StringTemplate fragTemplate(frag.str().c_str()); in createTmpArrayCase()
652 std::string frag = glu::getGLSLVersionDeclaration(glslVersion) + std::string("\n" in createTmpArrayVertexIdCase() local
667 vtx.c_str(), frag.c_str()); in createTmpArrayVertexIdCase()
703 std::ostringstream frag; in createVectorSubscriptCase() local
704 std::ostringstream& op = isVertexCase ? vtx : frag; in createVectorSubscriptCase()
710 frag << glu::getGLSLVersionDeclaration(glslVersion) << "\n"; in createVectorSubscriptCase()
714 frag << "layout(location = 0) out mediump vec4 o_color;\n"; in createVectorSubscriptCase()
719 frag << "in mediump vec3 v_color;\n"; in createVectorSubscriptCase()
724 frag << "in mediump vec4 v_coords;\n"; in createVectorSubscriptCase()
747 frag << "\n"; in createVectorSubscriptCase()
748 frag << "void main()\n"; in createVectorSubscriptCase()
749 frag << "{\n"; in createVectorSubscriptCase()
857 frag << " o_color = vec4(v_color.rgb, 1.0);\n"; in createVectorSubscriptCase()
862 frag << " o_color = vec4(vec3(res), 1.0);\n"; in createVectorSubscriptCase()
866 frag << "}\n"; in createVectorSubscriptCase()
879 StringTemplate fragTemplate(frag.str().c_str()); in createVectorSubscriptCase()
969 std::ostringstream frag; in createMatrixSubscriptCase() local
970 std::ostringstream& op = isVertexCase ? vtx : frag; in createMatrixSubscriptCase()
978 frag << glu::getGLSLVersionDeclaration(glslVersion) << "\n"; in createMatrixSubscriptCase()
982 frag << "layout(location = 0) out mediump vec4 o_color;\n"; in createMatrixSubscriptCase()
987 frag << "in mediump vec4 v_color;\n"; in createMatrixSubscriptCase()
992 frag << "in mediump vec4 v_coords;\n"; in createMatrixSubscriptCase()
1015 frag << "\n"; in createMatrixSubscriptCase()
1016 frag << "void main()\n"; in createMatrixSubscriptCase()
1017 frag << "{\n"; in createMatrixSubscriptCase()
1101 frag << " o_color = v_color;\n"; in createMatrixSubscriptCase()
1106 frag << " o_color = vec4(res${PADDING});\n"; in createMatrixSubscriptCase()
1110 frag << "}\n"; in createMatrixSubscriptCase()
1126 StringTemplate fragTemplate(frag.str().c_str()); in createMatrixSubscriptCase()