Lines Matching refs:codeAppendf
80 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), gp.inConicCoeffs().name()); in onEmitCode()
126 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); in onEmitCode()
127 fragBuilder->codeAppendf("%s = dFdy(%s.xyz);", dklmdy.c_str(), v.fsIn()); in onEmitCode()
128 fragBuilder->codeAppendf("%s = 2.0 * %s.x * %s.x - %s.y * %s.z - %s.z * %s.y;", in onEmitCode()
133 fragBuilder->codeAppendf("%s = 2.0 * %s.x * %s.x - %s.y * %s.z - %s.z * %s.y;", in onEmitCode()
138 fragBuilder->codeAppendf("%s = float2(%s, %s);", gF.c_str(), dfdx.c_str(), in onEmitCode()
140 fragBuilder->codeAppendf("%s = sqrt(dot(%s, %s));", in onEmitCode()
142 fragBuilder->codeAppendf("%s = %s.x*%s.x - %s.y*%s.z;", in onEmitCode()
144 fragBuilder->codeAppendf("%s = abs(%s);", func.c_str(), func.c_str()); in onEmitCode()
145 fragBuilder->codeAppendf("%s = %s / %s;", in onEmitCode()
147 fragBuilder->codeAppendf("%s = max(1.0 - %s, 0.0);", in onEmitCode()
154 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); in onEmitCode()
155 fragBuilder->codeAppendf("%s = dFdy(%s.xyz);", dklmdy.c_str(), v.fsIn()); in onEmitCode()
156 fragBuilder->codeAppendf("%s =" in onEmitCode()
162 fragBuilder->codeAppendf("%s =" in onEmitCode()
168 fragBuilder->codeAppendf("%s = float2(%s, %s);", gF.c_str(), dfdx.c_str(), in onEmitCode()
170 fragBuilder->codeAppendf("%s = sqrt(dot(%s, %s));", in onEmitCode()
172 fragBuilder->codeAppendf("%s = %s.x * %s.x - %s.y * %s.z;", in onEmitCode()
174 fragBuilder->codeAppendf("%s = %s / %s;", in onEmitCode()
176 fragBuilder->codeAppendf("%s = saturate(0.5 - %s);", in onEmitCode()
183 fragBuilder->codeAppendf("%s = %s.x * %s.x - %s.y * %s.z;", in onEmitCode()
185 fragBuilder->codeAppendf("%s = float(%s < 0.0);", in onEmitCode()
200 fragBuilder->codeAppendf("%s = half4(%s * %s);", in onEmitCode()
203 fragBuilder->codeAppendf("%s = half4(%s);", args.fOutputCoverage, edgeAlpha.c_str()); in onEmitCode()
331 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), gp.inHairQuadEdge().name()); in onEmitCode()
353 fragBuilder->codeAppendf("half edgeAlpha;"); in onEmitCode()
357 fragBuilder->codeAppendf("half2 duvdx = dFdx(%s.xy);", v.fsIn()); in onEmitCode()
358 fragBuilder->codeAppendf("half2 duvdy = dFdy(%s.xy);", v.fsIn()); in onEmitCode()
359 fragBuilder->codeAppendf("half2 gF = half2(2.0 * %s.x * duvdx.x - duvdx.y," in onEmitCode()
362 fragBuilder->codeAppendf("edgeAlpha = (%s.x * %s.x - %s.y);", in onEmitCode()
371 fragBuilder->codeAppendf("half2 duvdx = dFdx(%s.xy);", v.fsIn()); in onEmitCode()
372 fragBuilder->codeAppendf("half2 duvdy = dFdy(%s.xy);", v.fsIn()); in onEmitCode()
373 fragBuilder->codeAppendf("half2 gF = half2(2.0 * %s.x * duvdx.x - duvdx.y," in onEmitCode()
376 fragBuilder->codeAppendf("edgeAlpha = (%s.x * %s.x - %s.y);", in onEmitCode()
385 fragBuilder->codeAppendf("edgeAlpha = (%s.x * %s.x - %s.y);", in onEmitCode()
400 fragBuilder->codeAppendf("%s = half4(%s * edgeAlpha);", args.fOutputCoverage, in onEmitCode()
403 fragBuilder->codeAppendf("%s = half4(edgeAlpha);", args.fOutputCoverage); in onEmitCode()