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(area_x2) : 0;", outputWind); in CalcWind()
73 s->codeAppendf("%s = sign(area_x2);", outputWind); in CalcWind()
81 s->codeAppendf("float2 n = float2(%s.y - %s.y, %s.x - %s.x);", in EmitEdgeDistanceEquation()
87 s->codeAppendf("%s = float3(-n, dot(n, %s) - .5);", outputDistanceEquation, leftPt); in EmitEdgeDistanceEquation()
116 s->codeAppendf("float2 n = float2(%s.y - %s.y, %s.x - %s.x);", in CalcEdgeCoverageAtBloatVertex()
119 s->codeAppendf("float t = dot(%s, n);", rasterVertexDir); in CalcEdgeCoverageAtBloatVertex()
122 s->codeAppendf("%s = (abs(t) != nwidth ? t / nwidth : sign(t)) * -.5 - .5;", outputCoverage); in CalcEdgeCoverageAtBloatVertex()
132 s->codeAppendf("float2 n = float2(%s.y - %s.y, %s.x - %s.x);", in CalcEdgeCoveragesAtBloatVertices()
135 s->codeAppendf("float2 t = n * float2x2(%s, %s);", bloatDir1, bloatDir2); in CalcEdgeCoveragesAtBloatVertices()
136 s->codeAppendf("for (int i = 0; i < 2; ++i) {"); in CalcEdgeCoveragesAtBloatVertices()
137 s->codeAppendf( "%s[i] = (abs(t[i]) != nwidth ? t[i] / nwidth : sign(t[i])) * -.5 - .5;", in CalcEdgeCoveragesAtBloatVertices()
139 s->codeAppendf("}"); in CalcEdgeCoveragesAtBloatVertices()
150 s->codeAppendf("half obtuseness = max(dot(%s, %s), 0);", leftDir, rightDir); in CalcCornerAttenuation()
156 s->codeAppendf("half2 abs_bisect_maybe_transpose = abs((0 == obtuseness) ? %s - %s : %s + %s);", in CalcCornerAttenuation()
164 s->codeAppendf("half ninety_degreesness = determinant(half2x2(%s, %s));", leftDir, rightDir); in CalcCornerAttenuation()
180 s->codeAppendf("%s = max(obtuseness, axis_alignedness * ninety_degreesness);", in CalcCornerAttenuation()
226 f->codeAppendf("half coverage = 0;"); in emitFragmentCode()
228 f->codeAppendf("%s.a = coverage;", skOutputColor); in emitFragmentCode()
229 f->codeAppendf("%s = half4(1);", skOutputCoverage); in emitFragmentCode()