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