Lines Matching full:builder
25 virtual void emitCode(GrGLFullShaderBuilder* builder,
37 builder->addVarying(kVec2f_GrSLType, "textureCoords", &vsVaryingName, &fsVaryingNamePtr);
41 builder->getEffectAttributeName(drawEffect.getVertexAttribIndices()[0])->c_str();
42 builder->vsCodeAppendf("\t%s = %s;\n", vsVaryingName, attrName);
44 builder->fsCodeAppend("\tvec4 texColor = ");
45 builder->fsAppendTextureLookup(samplers[0],
48 builder->fsCodeAppend(";\n");
49 builder->fsCodeAppend("\tfloat distance = texColor.r;\n");
52 builder->fsCodeAppend("\tfloat afwidth = 0.7071*length(vec2(dFdx(distance), dFdy(distance)));\n");
53 builder->fsCodeAppend("\tfloat val = smoothstep("THRESHOLD"-afwidth, "THRESHOLD"+afwidth, distance);\n");
55 builder->fsCodeAppendf("\t%s = %s;\n", outputColor,