Lines Matching refs:codeAppendf
37 f->codeAppendf("%s = %s;", outputCoverage, fCoverages.fsIn()); in onEmitFragmentCode()
39 f->codeAppendf("%s = %s.z * %s.y + %s.x;", in onEmitFragmentCode()
51 s->codeAppendf("float2 a = %s[0] - %s[1], " in CalcWind()
56 s->codeAppendf("float2 p12 = (%s[1] + %s[2]) * .5;", pts, pts); in CalcWind()
57 s->codeAppendf("float2 a = %s[0] - p12, " in CalcWind()
69 s->codeAppendf("%s = (abs(area_x2 * 1024) > basewidth) ? sign(half(area_x2)) : 0;", in CalcWind()
74 s->codeAppendf("%s = sign(half(area_x2));", outputWind); in CalcWind()
82 s->codeAppendf("float2 n = float2(%s.y - %s.y, %s.x - %s.x);", in EmitEdgeDistanceEquation()
88 s->codeAppendf("%s = float3(-n, dot(n, %s) - .5);", outputDistanceEquation, leftPt); in EmitEdgeDistanceEquation()
117 s->codeAppendf("float2 n = float2(%s.y - %s.y, %s.x - %s.x);", in CalcEdgeCoverageAtBloatVertex()
120 s->codeAppendf("float t = dot(%s, n);", rasterVertexDir); in CalcEdgeCoverageAtBloatVertex()
123 s->codeAppendf("%s = half(abs(t) != nwidth ? t / nwidth : sign(t)) * -.5 - .5;", in CalcEdgeCoverageAtBloatVertex()
134 s->codeAppendf("float2 n = float2(%s.y - %s.y, %s.x - %s.x);", in CalcEdgeCoveragesAtBloatVertices()
137 s->codeAppendf("float2 t = n * float2x2(%s, %s);", bloatDir1, bloatDir2); in CalcEdgeCoveragesAtBloatVertices()
138 s->codeAppendf("for (int i = 0; i < 2; ++i) {"); in CalcEdgeCoveragesAtBloatVertices()
139 s->codeAppendf( "%s[i] = half(abs(t[i]) != nwidth ? t[i] / nwidth : sign(t[i])) * -.5 - .5;", in CalcEdgeCoveragesAtBloatVertices()
141 s->codeAppendf("}"); in CalcEdgeCoveragesAtBloatVertices()
152 s->codeAppendf("half obtuseness = max(half(dot(%s, %s)), 0);", leftDir, rightDir); in CalcCornerAttenuation()
158 s->codeAppendf("half2 abs_bisect_maybe_transpose = abs((0 == obtuseness) ? half2(%s - %s) : " in CalcCornerAttenuation()
167 s->codeAppendf("half ninety_degreesness = determinant(half2x2(%s, %s));", leftDir, rightDir); in CalcCornerAttenuation()
183 s->codeAppendf("%s = max(obtuseness, axis_alignedness * ninety_degreesness);", in CalcCornerAttenuation()
229 f->codeAppendf("half coverage = 0;"); in emitFragmentCode()
231 f->codeAppendf("%s.a = coverage;", skOutputColor); in emitFragmentCode()
232 f->codeAppendf("%s = half4(1);", skOutputCoverage); in emitFragmentCode()