Lines Matching refs:frag

314 	std::ostringstream frag;  in createVaryingArrayCase()  local
315 frag << "#version 310 es\n"; in createVaryingArrayCase()
316 frag << "precision mediump int;\n"; in createVaryingArrayCase()
317 frag << "layout(location = 0) out mediump vec4 o_color;\n"; in createVaryingArrayCase()
320 frag << "layout(std140, binding = 0) uniform something0 { mediump int ui_zero; };\n"; in createVaryingArrayCase()
321 frag << "layout(std140, binding = 1) uniform something1 { mediump int ui_one; };\n"; in createVaryingArrayCase()
322 frag << "layout(std140, binding = 2) uniform something2 { mediump int ui_two; };\n"; in createVaryingArrayCase()
323 frag << "layout(std140, binding = 3) uniform something3 { mediump int ui_three; };\n"; in createVaryingArrayCase()
326 frag << "layout(std140, binding = 4) uniform something4 { mediump int ui_four; };\n"; in createVaryingArrayCase()
327 frag << "layout(location = 0) in ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; in createVaryingArrayCase()
328 frag << "\n"; in createVaryingArrayCase()
329 frag << "void main()\n"; in createVaryingArrayCase()
330 frag << "{\n"; in createVaryingArrayCase()
331 frag << " ${PRECISION} ${VAR_TYPE} res = ${VAR_TYPE}(0.0);\n"; in createVaryingArrayCase()
334 frag << " res += var[0];\n"; in createVaryingArrayCase()
335 frag << " res += var[1];\n"; in createVaryingArrayCase()
336 frag << " res += var[2];\n"; in createVaryingArrayCase()
337 frag << " res += var[3];\n"; in createVaryingArrayCase()
341 frag << " res += var[ui_zero];\n"; in createVaryingArrayCase()
342 frag << " res += var[ui_one];\n"; in createVaryingArrayCase()
343 frag << " res += var[ui_two];\n"; in createVaryingArrayCase()
344 frag << " res += var[ui_three];\n"; in createVaryingArrayCase()
348 frag << " for (int i = 0; i < 4; i++)\n"; in createVaryingArrayCase()
349 frag << " res += var[i];\n"; in createVaryingArrayCase()
354 frag << " for (int i = 0; i < ui_four; i++)\n"; in createVaryingArrayCase()
355 frag << " res += var[i];\n"; in createVaryingArrayCase()
357 frag << " o_color = vec4(res${PADDING});\n"; in createVaryingArrayCase()
358 frag << "}\n"; in createVaryingArrayCase()
376 StringTemplate fragTemplate(frag.str()); in createVaryingArrayCase()
392 std::ostringstream frag; in createUniformArrayCase() local
393 std::ostringstream& op = isVertexCase ? vtx : frag; in createUniformArrayCase()
396 frag << "#version 310 es\n"; in createUniformArrayCase()
400 frag << "layout(location = 0) out mediump vec4 o_color;\n"; in createUniformArrayCase()
405 frag << "layout(location = 0) in mediump vec4 v_color;\n"; in createUniformArrayCase()
410 frag << "layout(location = 0) in mediump vec4 v_coords;\n"; in createUniformArrayCase()
430 frag << "\n"; in createUniformArrayCase()
431 frag << "void main()\n"; in createUniformArrayCase()
432 frag << "{\n"; in createUniformArrayCase()
465 frag << " o_color = v_color;\n"; in createUniformArrayCase()
470 frag << " o_color = vec4(res${PADDING});\n"; in createUniformArrayCase()
474 frag << "}\n"; in createUniformArrayCase()
492 StringTemplate fragTemplate(frag.str()); in createUniformArrayCase()
509 std::ostringstream frag; in createTmpArrayCase() local
510 std::ostringstream& op = isVertexCase ? vtx : frag; in createTmpArrayCase()
513 frag << "#version 310 es\n"; in createTmpArrayCase()
517 frag << "layout(location = 0) out mediump vec4 o_color;\n"; in createTmpArrayCase()
522 frag << "layout(location = 0) in mediump vec4 v_color;\n"; in createTmpArrayCase()
527 frag << "layout(location = 0) in mediump vec4 v_coords;\n"; in createTmpArrayCase()
546 frag << "\n"; in createTmpArrayCase()
547 frag << "void main()\n"; in createTmpArrayCase()
548 frag << "{\n"; in createTmpArrayCase()
620 frag << " o_color = v_color;\n"; in createTmpArrayCase()
625 frag << " o_color = vec4(res${PADDING});\n"; in createTmpArrayCase()
629 frag << "}\n"; in createTmpArrayCase()
647 StringTemplate fragTemplate(frag.str()); in createTmpArrayCase()
680 std::ostringstream frag; in createVectorSubscriptCase() local
681 std::ostringstream& op = isVertexCase ? vtx : frag; in createVectorSubscriptCase()
687 frag << "#version 310 es\n"; in createVectorSubscriptCase()
691 frag << "layout(location = 0) out mediump vec4 o_color;\n"; in createVectorSubscriptCase()
696 frag << "layout(location = 0) in mediump vec3 v_color;\n"; in createVectorSubscriptCase()
701 frag << "layout(location = 0) in mediump vec4 v_coords;\n"; in createVectorSubscriptCase()
720 frag << "\n"; in createVectorSubscriptCase()
721 frag << "void main()\n"; in createVectorSubscriptCase()
722 frag << "{\n"; in createVectorSubscriptCase()
812 frag << " o_color = vec4(v_color.rgb, 1.0);\n"; in createVectorSubscriptCase()
817 frag << " o_color = vec4(vec3(res), 1.0);\n"; in createVectorSubscriptCase()
821 frag << "}\n"; in createVectorSubscriptCase()
834 StringTemplate fragTemplate(frag.str()); in createVectorSubscriptCase()
885 std::ostringstream frag; in createMatrixSubscriptCase() local
886 std::ostringstream& op = isVertexCase ? vtx : frag; in createMatrixSubscriptCase()
894 frag << "#version 310 es\n"; in createMatrixSubscriptCase()
898 frag << "layout(location = 0) out mediump vec4 o_color;\n"; in createMatrixSubscriptCase()
903 frag << "layout(location = 0) in mediump vec4 v_color;\n"; in createMatrixSubscriptCase()
908 frag << "layout(location = 0) in mediump vec4 v_coords;\n"; in createMatrixSubscriptCase()
927 frag << "\n"; in createMatrixSubscriptCase()
928 frag << "void main()\n"; in createMatrixSubscriptCase()
929 frag << "{\n"; in createMatrixSubscriptCase()
1001 frag << " o_color = v_color;\n"; in createMatrixSubscriptCase()
1006 frag << " o_color = vec4(res${PADDING});\n"; in createMatrixSubscriptCase()
1010 frag << "}\n"; in createMatrixSubscriptCase()
1026 StringTemplate fragTemplate(frag.str()); in createMatrixSubscriptCase()