Lines Matching refs:codeAppendf
172 v->codeAppendf("float2x2 N = float2x2(%s.xy, %s.zw);", proc.getEdgeNormsAttrib().name(), in onEmitCode()
177 v->codeAppendf("float4 devbounds = %s;", in onEmitCode()
185 v->codeAppendf("float2 refpt45 = (0 == ((sk_VertexID + 1) & (1 << 2))) ? %s.xy : %s.zw;", in onEmitCode()
188 v->codeAppendf("refpt45 *= float2x2(.5,.5,-.5,.5);"); // transform back to device space. in onEmitCode()
191 v->codeAppendf("float2 octocoord = K * inverse(N);"); in onEmitCode()
206 v->codeAppendf("float2 atlascoord = octocoord + float2(%s);", in onEmitCode()
209 v->codeAppendf("%s.xy = atlascoord * %s;", texcoord.vsOut(), atlasAdjust); in onEmitCode()
212 v->codeAppendf("%s.xy = float2(atlascoord.x * %s.x, 1 - atlascoord.y * %s.y);", in onEmitCode()
217 v->codeAppendf("%s.z = sign(devbounds.z - devbounds.x) * .5;", texcoord.vsOut()); in onEmitCode()
233 f->codeAppendf("coverage = min(abs(coverage) * %s.z, .5);", texcoord.fsIn()); in onEmitCode()
239 f->codeAppendf("%s = half4(coverage);", args.fOutputCoverage); in onEmitCode()