Lines Matching refs:codeAppend
364 fsBuilder->codeAppend("highp float dmax = max(d1, max(d2, d3));");
368 fsBuilder->codeAppend("d1 += delta1.x;");
369 fsBuilder->codeAppend("d2 += delta2.x;");
370 fsBuilder->codeAppend("d3 += delta3.x;");
371 fsBuilder->codeAppend("dmax = max(d1, max(d2, d3));");
373 fsBuilder->codeAppend("d1 += delta1.y;");
374 fsBuilder->codeAppend("d2 += delta2.y;");
375 fsBuilder->codeAppend("d3 += delta3.y;");
376 fsBuilder->codeAppend("dmax = max(d1, max(d2, d3));");
378 fsBuilder->codeAppend("d1 -= delta1.x;");
379 codeAppend("d2 -= delta2.x;");
380 fsBuilder->codeAppend("d3 -= delta3.x;");
381 fsBuilder->codeAppend("dmax = max(d1, max(d2, d3));");
550 fsBuilder->codeAppend("highp vec2 uvIncX = uvdX * 0.45 + uvdY * -0.1;");
551 fsBuilder->codeAppend("highp vec2 uvIncY = uvdX * 0.1 + uvdY * 0.55;");
560 fsBuilder->codeAppend("uv += uvIncX;");
564 fsBuilder->codeAppend("uv += uvIncY;");
568 fsBuilder->codeAppend("uv -= uvIncX;");
689 fsBuilder->codeAppend("float coverage;");
691 fsBuilder->codeAppend("coverage = float(abs(pls.windings[0]) % 2) * 0.25;");
692 fsBuilder->codeAppend("coverage += float(abs(pls.windings[1]) % 2) * 0.25;");
693 fsBuilder->codeAppend("coverage += float(abs(pls.windings[2]) % 2) * 0.25;");
694 fsBuilder->codeAppend("coverage += float(abs(pls.windings[3]) % 2) * 0.25;");
695 fsBuilder->codeAppend("} else {");
696 fsBuilder->codeAppend("coverage = pls.windings[0] != 0 ? 0.25 : 0.0;");
697 fsBuilder->codeAppend("coverage += pls.windings[1] != 0 ? 0.25 : 0.0;");
698 fsBuilder->codeAppend("coverage += pls.windings[2] != 0 ? 0.25 : 0.0;");
699 fsBuilder->codeAppend("coverage += pls.windings[3] != 0 ? 0.25 : 0.0;");
700 fsBuilder->codeAppend("}");