Lines Matching refs:codeAppendf
193 fragBuilder->codeAppendf("float2 dxy0 = %s.xy - sk_FragCoord.xy;", rectName); in emitCode()
194 fragBuilder->codeAppendf("float2 dxy1 = sk_FragCoord.xy - %s.zw;", rectName); in emitCode()
196 fragBuilder->codeAppendf("half alpha = half(%s);", clampedCircleDistance.c_str()); in emitCode()
199 fragBuilder->codeAppendf("float2 dxy = max(%s.xy - sk_FragCoord.xy, 0.0);", in emitCode()
201 fragBuilder->codeAppendf("half rightAlpha = half(saturate(%s.z - sk_FragCoord.x));", in emitCode()
203 fragBuilder->codeAppendf("half bottomAlpha = half(saturate(%s.w - sk_FragCoord.y));", in emitCode()
205 fragBuilder->codeAppendf("half alpha = bottomAlpha * rightAlpha * half(%s);", in emitCode()
209 fragBuilder->codeAppendf("float2 dxy = max(float2(sk_FragCoord.x - %s.z, " in emitCode()
212 fragBuilder->codeAppendf("half leftAlpha = half(saturate(sk_FragCoord.x - %s.x));", in emitCode()
214 fragBuilder->codeAppendf("half bottomAlpha = half(saturate(%s.w - sk_FragCoord.y));", in emitCode()
216 fragBuilder->codeAppendf("half alpha = bottomAlpha * leftAlpha * half(%s);", in emitCode()
220 fragBuilder->codeAppendf("float2 dxy = max(sk_FragCoord.xy - %s.zw, 0.0);", in emitCode()
222 fragBuilder->codeAppendf("half leftAlpha = half(saturate(sk_FragCoord.x - %s.x));", in emitCode()
224 fragBuilder->codeAppendf("half topAlpha = half(saturate(sk_FragCoord.y - %s.y));", in emitCode()
226 fragBuilder->codeAppendf("half alpha = topAlpha * leftAlpha * half(%s);", in emitCode()
230 fragBuilder->codeAppendf("float2 dxy = max(float2(%s.x - sk_FragCoord.x, " in emitCode()
233 fragBuilder->codeAppendf("half rightAlpha = half(saturate(%s.z - sk_FragCoord.x));", in emitCode()
235 fragBuilder->codeAppendf("half topAlpha = half(saturate(sk_FragCoord.y - %s.y));", in emitCode()
237 fragBuilder->codeAppendf("half alpha = topAlpha * rightAlpha * half(%s);", in emitCode()
241 fragBuilder->codeAppendf("float2 dxy0 = %s.xy - sk_FragCoord.xy;", rectName); in emitCode()
242 fragBuilder->codeAppendf("float dy1 = sk_FragCoord.y - %s.w;", rectName); in emitCode()
244 fragBuilder->codeAppendf("half rightAlpha = half(saturate(%s.z - sk_FragCoord.x));", in emitCode()
246 fragBuilder->codeAppendf("half alpha = rightAlpha * half(%s);", in emitCode()
250 fragBuilder->codeAppendf("float2 dxy0 = %s.xy - sk_FragCoord.xy;", rectName); in emitCode()
251 fragBuilder->codeAppendf("float dx1 = sk_FragCoord.x - %s.z;", rectName); in emitCode()
253 fragBuilder->codeAppendf("half bottomAlpha = half(saturate(%s.w - sk_FragCoord.y));", in emitCode()
255 fragBuilder->codeAppendf("half alpha = bottomAlpha * half(%s);", in emitCode()
259 fragBuilder->codeAppendf("float dy0 = %s.y - sk_FragCoord.y;", rectName); in emitCode()
260 fragBuilder->codeAppendf("float2 dxy1 = sk_FragCoord.xy - %s.zw;", rectName); in emitCode()
262 fragBuilder->codeAppendf("half leftAlpha = half(saturate(sk_FragCoord.x - %s.x));", in emitCode()
264 fragBuilder->codeAppendf("half alpha = leftAlpha * half(%s);", in emitCode()
268 fragBuilder->codeAppendf("float dx0 = %s.x - sk_FragCoord.x;", rectName); in emitCode()
269 fragBuilder->codeAppendf("float2 dxy1 = sk_FragCoord.xy - %s.zw;", rectName); in emitCode()
271 fragBuilder->codeAppendf("half topAlpha = half(saturate(sk_FragCoord.y - %s.y));", in emitCode()
273 fragBuilder->codeAppendf("half alpha = topAlpha * half(%s);", in emitCode()
282 fragBuilder->codeAppendf("%s = %s * alpha;", args.fOutputColor, args.fInputColor); in emitCode()
522 fragBuilder->codeAppendf("float2 dxy0 = %s.xy - sk_FragCoord.xy;", rectName); in emitCode()
523 fragBuilder->codeAppendf("float2 dxy1 = sk_FragCoord.xy - %s.zw;", rectName); in emitCode()
544 fragBuilder->codeAppendf("dxy *= %s.y;", scaleName); in emitCode()
547 fragBuilder->codeAppendf("float2 Z = dxy * %s.xy;", invRadiiXYSqdName); in emitCode()
557 fragBuilder->codeAppendf("dxy0 *= %s.y;", scaleName); in emitCode()
558 fragBuilder->codeAppendf("dxy1 *= %s.y;", scaleName); in emitCode()
564 fragBuilder->codeAppendf("float2 Z = max(max(dxy0 * %s.xy, dxy1 * %s.zw), 0.0);", in emitCode()
580 fragBuilder->codeAppendf("approx_dist *= %s.x;", scaleName); in emitCode()
589 fragBuilder->codeAppendf("%s = %s * alpha;", args.fOutputColor, args.fInputColor); in emitCode()