Home | History | Annotate | Download | only in gl

Lines Matching full:builder

97 bool GrGLProgram::genProgram(GrGLShaderBuilder* builder,
105 GrGLSLExpr4 inColor = builder->getInputColor();
108 builder->createAndEmitEffects(colorStages,
115 GrGLSLExpr4 inCoverage = builder->getInputCoverage();
118 builder->createAndEmitEffects(coverageStages,
127 builder->fsCodeAppend("\tdiscard;\n");
129 builder->fsCodeAppendf("\tif (all(lessThanEqual(%s, vec4(0.0)))) {\n\t\tdiscard;\n\t}\n",
135 const char* secondaryOutputName = builder->enableSecondaryOutput();
147 builder->fsCodeAppendf("\t%s = %s;\n", secondaryOutputName, (coeff * inCoverage).c_str());
159 GrGLSLExpr4 dstContribution = dstCoeff * GrGLSLExpr4(builder->dstColor());
163 builder->fsCodeAppendf("\t%s = %s;\n", builder->getColorOutputName(), fragColor.c_str());
165 if (!builder->finish(&fProgramID)) {
169 fUniformHandles.fRTHeightUni = builder->getRTHeightUniform();
170 fUniformHandles.fDstCopyTopLeftUni = builder->getDstCopyTopLeftUniform();
171 fUniformHandles.fDstCopyScaleUni = builder->getDstCopyScaleUniform();
172 fUniformHandles.fColorUni = builder->getColorUniform();
173 fUniformHandles.fCoverageUni = builder->getCoverageUniform();
174 fUniformHandles.fDstCopySamplerUni = builder->getDstCopySamplerUniform();