Lines Matching full:builder
57 void GrGLConvolutionEffect::emitCode(GrGLShaderBuilder* builder,
64 SkString coords2D = builder->ensureFSCoords2D(coords, 0);
65 fImageIncrementUni = builder->addUniform(GrGLShaderBuilder::kFragment_Visibility,
68 fBoundsUni = builder->addUniform(GrGLShaderBuilder::kFragment_Visibility,
71 fKernelUni = builder->addUniformArray(GrGLShaderBuilder::kFragment_Visibility,
74 builder->fsCodeAppendf("\t\t%s = vec4(0, 0, 0, 0);\n", outputColor);
77 const GrGLShaderVar& kernel = builder->getUniformVariable(fKernelUni);
78 const char* imgInc = builder->getUniformCStr(fImageIncrementUni);
80 builder->fsCodeAppendf("\t\tvec2 coord = %s - %d.0 * %s;\n", coords2D.c_str(), fRadius, imgInc);
88 builder->fsCodeAppendf("\t\t%s += ", outputColor);
89 builder->fsAppendTextureLookup(samplers[0], "coord");
91 const char* bounds = builder->getUniformCStr(fBoundsUni);
93 builder->fsCodeAppendf(" * float(coord.%s >= %s.x && coord.%s <= %s.y)",
96 builder->fsCodeAppendf(" * %s;\n", kernelIndex.c_str());
97 builder->fsCodeAppendf("\t\tcoord += %s;\n", imgInc);
102 builder->fsCodeAppend(modulate.c_str());