Lines Matching refs:segments
344 void gen_attribute_coverage(GrGLShaderBuilder* segments,
346 segments->fVSAttrs.push_back().set(kVec4f_GrSLType,
350 segments->addVarying(kVec4f_GrSLType, "Coverage", &vsName, &fsName);
351 segments->fVSCode.appendf("\t%s = " COV_ATTR_NAME ";\n", vsName);
353 segments->fFSCode.appendf("\tvec4 attrCoverage = %s * %s;\n",
362 void GrGLProgram::genGeometryShader(GrGLShaderBuilder* segments) const {
366 segments->fGSHeader.append("layout(triangles) in;\n"
368 segments->fGSCode.append("\tfor (int i = 0; i < 3; ++i) {\n"
371 segments->fGSCode.append("\t\tgl_PointSize = 1.0;\n");
373 GrAssert(segments->fGSInputs.count() == segments->fGSOutputs.count());
374 int count = segments->fGSInputs.count();
376 segments->fGSCode.appendf("\t\t%s = %s[i];\n",
377 segments->fGSOutputs[i].getName().c_str(),
378 segments->fGSInputs[i].getName().c_str());
380 segments->fGSCode.append("\t\tEmitVertex();\n"