Lines Matching refs:codeAppendf
168 fragBuilder->codeAppendf("for (int i = 0; i < %d; ++i)", (int)kernelArea); in emitKernelBlock()
178 fragBuilder->codeAppendf("k = %s.w + %s;", kernelSample.c_str(), kernelBias); in emitKernelBlock()
179 fragBuilder->codeAppendf("sourceOffset.y = floor(half(i) / %d);", kernelWidth); in emitKernelBlock()
180 fragBuilder->codeAppendf("sourceOffset.x = half(i) - sourceOffset.y * %d;", kernelWidth); in emitKernelBlock()
182 fragBuilder->codeAppendf("sourceOffset = half2(%d, %d);", loc.x(), loc.y()); in emitKernelBlock()
185 fragBuilder->codeAppendf("k = %s[%d][%d];", kernel, offset / 4, offset & 0x3); in emitKernelBlock()
189 fragBuilder->codeAppendf("half4 c = %s;", sample.c_str()); in emitKernelBlock()
225 fragBuilder->codeAppendf("float2 coord = %s - %s;", args.fSampleCoord, kernelOffset); in emitCode()
237 fragBuilder->codeAppendf("half4 color;"); in emitCode()
239 fragBuilder->codeAppendf("color = sum * %s + %s;", gain, bias); in emitCode()
240 fragBuilder->codeAppendf("color.a = saturate(color.a);"); in emitCode()
241 fragBuilder->codeAppendf("color.rgb = clamp(color.rgb, 0.0, color.a);"); in emitCode()
244 fragBuilder->codeAppendf("half4 c = %s;", sample.c_str()); in emitCode()
245 fragBuilder->codeAppendf("color.a = c.a;"); in emitCode()
246 fragBuilder->codeAppendf("color.rgb = saturate(sum.rgb * %s + %s);", gain, bias); in emitCode()
247 fragBuilder->codeAppendf("color.rgb *= color.a;"); in emitCode()
249 fragBuilder->codeAppendf("return color;"); in emitCode()