Lines Matching refs:fragBuilder
597 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode() local
599 SkString vCoords = fragBuilder->ensureFSCoords2D(args.fCoords, 0); in emitCode()
681 fragBuilder->appendTextureLookup(&noiseCode, args.fSamplers[0], xCoords.c_str(), in emitCode()
692 fragBuilder->appendTextureLookup(&noiseCode, args.fSamplers[0], xCoords.c_str(), in emitCode()
717 fragBuilder->appendTextureLookup(&noiseCode, args.fSamplers[1], latticeCoords.c_str(), in emitCode()
729 fragBuilder->appendTextureLookup(&noiseCode, args.fSamplers[1], latticeCoords.c_str(), in emitCode()
745 fragBuilder->appendTextureLookup(&noiseCode, args.fSamplers[1], latticeCoords.c_str(), in emitCode()
757 fragBuilder->appendTextureLookup(&noiseCode, args.fSamplers[1], latticeCoords.c_str(), in emitCode()
770 fragBuilder->emitFunction(kFloat_GrSLType, in emitCode()
774 fragBuilder->emitFunction(kFloat_GrSLType, in emitCode()
780 fragBuilder->codeAppendf("\n\t\tvec2 %s = floor(%s.xy) * %s;", in emitCode()
784 fragBuilder->codeAppendf("\n\t\t%s = vec4(0.0);", args.fOutputColor); in emitCode()
788 fragBuilder->codeAppendf("vec2 %s = %s;", stitchData, stitchDataUni); in emitCode()
791 fragBuilder->codeAppendf("float %s = 1.0;", ratio); in emitCode()
794 fragBuilder->codeAppendf("for (int octave = 0; octave < %d; ++octave) {", pne.numOctaves()); in emitCode()
796 fragBuilder->codeAppendf("%s += ", args.fOutputColor); in emitCode()
798 fragBuilder->codeAppend("abs("); in emitCode()
801 fragBuilder->codeAppendf( in emitCode()
809 fragBuilder->codeAppendf( in emitCode()
818 fragBuilder->codeAppendf(")"); // end of "abs(" in emitCode()
820 fragBuilder->codeAppendf(" * %s;", ratio); in emitCode()
822 fragBuilder->codeAppendf("\n\t\t\t%s *= vec2(2.0);", noiseVec); in emitCode()
823 fragBuilder->codeAppendf("\n\t\t\t%s *= 0.5;", ratio); in emitCode()
826 fragBuilder->codeAppendf("\n\t\t\t%s *= vec2(2.0);", stitchData); in emitCode()
828 fragBuilder->codeAppend("\n\t\t}"); // end of the for loop on octaves in emitCode()
833 fragBuilder->codeAppendf("\n\t\t%s = %s * vec4(0.5) + vec4(0.5);", in emitCode()
838 … fragBuilder->codeAppendf("\n\t\t%s = clamp(%s, 0.0, 1.0);", args.fOutputColor, args.fOutputColor); in emitCode()
841 fragBuilder->codeAppendf("\n\t\t%s = vec4(%s.rgb * %s.aaa, %s.a);\n", in emitCode()