Lines Matching refs:codeAppendf
18 s->codeAppendf("float x0 = %s[0].x - %s[1].x, x2 = %s[2].x - %s[1].x;", pts, pts, pts, pts); in emitSetupCode()
19 s->codeAppendf("float y0 = %s[0].y - %s[1].y, y2 = %s[2].y - %s[1].y;", pts, pts, pts, pts); in emitSetupCode()
20 s->codeAppendf("float w = %s[3].x;", pts); in emitSetupCode()
21 s->codeAppendf("%s = float3x3(y2 - y0, x0 - x2, x2*y0 - x0*y2, " in emitSetupCode()
26 s->codeAppendf("%s = %s[1];", fControlPoint.c_str(), pts); in emitSetupCode()
30 s->codeAppendf("float kwidth = 2*bloat * %s * (abs(%s[0].x) + abs(%s[0].y));", in emitSetupCode()
32 s->codeAppendf("%s *= 1/kwidth;", fKLMMatrix.c_str()); in emitSetupCode()
38 s->codeAppendf("float2 p1w = %s[1]*w;", pts); in emitSetupCode()
41 s->codeAppendf("conic_hull[0] = %s[0];", pts); in emitSetupCode()
42 s->codeAppendf("conic_hull[1] = (%s[0] + p1w) * r;", pts); in emitSetupCode()
43 s->codeAppendf("conic_hull[2] = (p1w + %s[2]) * r;", pts); in emitSetupCode()
44 s->codeAppendf("conic_hull[3] = %s[2];", pts); in emitSetupCode()
77 f->codeAppendf("%s *= %s.w;", outputCoverage, fKLM_fWind.fsIn()); // Wind. in onEmitFragmentCode()
80 f->codeAppendf("%s = %s.z * %s.w + %s;", // Attenuated corner coverage. in onEmitFragmentCode()