Lines Matching refs:fragBuilder
78 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in onEmitCode() local
80 fragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode()
81 this->setupUniformColor(fragBuilder, uniformHandler, args.fOutputColor, &fColorUniform); in onEmitCode()
114 fragBuilder->declAppend(edgeAlpha); in onEmitCode()
115 fragBuilder->declAppend(dklmdx); in onEmitCode()
116 fragBuilder->declAppend(dklmdy); in onEmitCode()
117 fragBuilder->declAppend(dfdx); in onEmitCode()
118 fragBuilder->declAppend(dfdy); in onEmitCode()
119 fragBuilder->declAppend(gF); in onEmitCode()
120 fragBuilder->declAppend(gFM); in onEmitCode()
121 fragBuilder->declAppend(func); in onEmitCode()
123 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); in onEmitCode()
124 fragBuilder->codeAppendf("%s = dFdy(%s.xyz);", dklmdy.c_str(), v.fsIn()); in onEmitCode()
125 fragBuilder->codeAppendf("%s = 2.0 * %s.x * %s.x - %s.y * %s.z - %s.z * %s.y;", in onEmitCode()
130 fragBuilder->codeAppendf("%s = 2.0 * %s.x * %s.x - %s.y * %s.z - %s.z * %s.y;", in onEmitCode()
135 fragBuilder->codeAppendf("%s = float2(%s, %s);", gF.c_str(), dfdx.c_str(), in onEmitCode()
137 fragBuilder->codeAppendf("%s = sqrt(dot(%s, %s));", in onEmitCode()
139 fragBuilder->codeAppendf("%s = %s.x*%s.x - %s.y*%s.z;", in onEmitCode()
141 fragBuilder->codeAppendf("%s = abs(%s);", func.c_str(), func.c_str()); in onEmitCode()
142 fragBuilder->codeAppendf("%s = half(%s / %s);", in onEmitCode()
144 fragBuilder->codeAppendf("%s = max(1.0 - %s, 0.0);", in onEmitCode()
157 fragBuilder->codeAppendf("half4 %s = half4(half(%s) * %s);", in onEmitCode()
160 fragBuilder->codeAppendf("half4 %s = half4(%s);", args.fOutputCoverage, edgeAlpha.c_str()); in onEmitCode()
289 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in onEmitCode() local
291 fragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode()
292 this->setupUniformColor(fragBuilder, uniformHandler, args.fOutputColor, &fColorUniform); in onEmitCode()
312 fragBuilder->codeAppendf("half edgeAlpha;"); in onEmitCode()
314 fragBuilder->codeAppendf("half2 duvdx = half2(dFdx(%s.xy));", v.fsIn()); in onEmitCode()
315 fragBuilder->codeAppendf("half2 duvdy = half2(dFdy(%s.xy));", v.fsIn()); in onEmitCode()
316 fragBuilder->codeAppendf("half2 gF = half2(2.0 * %s.x * duvdx.x - duvdx.y," in onEmitCode()
319 fragBuilder->codeAppendf("edgeAlpha = half(%s.x * %s.x - %s.y);", in onEmitCode()
321 fragBuilder->codeAppend("edgeAlpha = sqrt(edgeAlpha * edgeAlpha / dot(gF, gF));"); in onEmitCode()
322 fragBuilder->codeAppend("edgeAlpha = max(1.0 - edgeAlpha, 0.0);"); in onEmitCode()
333 fragBuilder->codeAppendf("half4 %s = half4(%s * edgeAlpha);", args.fOutputCoverage, in onEmitCode()
336 fragBuilder->codeAppendf("half4 %s = half4(edgeAlpha);", args.fOutputCoverage); in onEmitCode()