Lines Matching refs:fragBuilder
82 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in onEmitCode() local
84 this->setupUniformColor(fragBuilder, uniformHandler, args.fOutputColor, &fColorUniform); in onEmitCode()
115 fragBuilder->declAppend(edgeAlpha); in onEmitCode()
116 fragBuilder->declAppend(dklmdx); in onEmitCode()
117 fragBuilder->declAppend(dklmdy); in onEmitCode()
118 fragBuilder->declAppend(dfdx); in onEmitCode()
119 fragBuilder->declAppend(dfdy); in onEmitCode()
120 fragBuilder->declAppend(gF); in onEmitCode()
121 fragBuilder->declAppend(gFM); in onEmitCode()
122 fragBuilder->declAppend(func); 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()
333 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in onEmitCode() local
335 this->setupUniformColor(fragBuilder, uniformHandler, args.fOutputColor, &fColorUniform); 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()
364 fragBuilder->codeAppend("edgeAlpha = sqrt(edgeAlpha * edgeAlpha / dot(gF, gF));"); in onEmitCode()
365 fragBuilder->codeAppend("edgeAlpha = max(1.0 - edgeAlpha, 0.0);"); 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()
378 fragBuilder->codeAppend("edgeAlpha = edgeAlpha / sqrt(dot(gF, gF));"); in onEmitCode()
379 fragBuilder->codeAppend("edgeAlpha = saturate(0.5 - edgeAlpha);"); in onEmitCode()
385 fragBuilder->codeAppendf("edgeAlpha = (%s.x * %s.x - %s.y);", in onEmitCode()
387 fragBuilder->codeAppend("edgeAlpha = half(edgeAlpha < 0.0);"); in onEmitCode()
400 fragBuilder->codeAppendf("%s = half4(%s * edgeAlpha);", args.fOutputCoverage, in onEmitCode()
403 fragBuilder->codeAppendf("%s = half4(edgeAlpha);", args.fOutputCoverage); in onEmitCode()