Lines Matching +full:- +full:fvisibility
4 * Use of this source code is governed by a BSD-style license that can be
16 SkASSERT(!fProgramBuilder->primitiveProcessor().willUseGeoShader()); in addPassThroughAttribute()
18 this->addVarying(input.name(), &v, interpolation); in addPassThroughAttribute()
19 fProgramBuilder->fVS.codeAppendf("%s = %s;", v.vsOut(), input.name()); in addPassThroughAttribute()
20 fProgramBuilder->fFS.codeAppendf("%s = %s;", output, v.fsIn()); in addPassThroughAttribute()
43 SkASSERT(GrSLTypeIsFloatType(varying->type()) || Interpolation::kMustBeFlat == interpolation); in addVarying()
44 bool willUseGeoShader = fProgramBuilder->primitiveProcessor().willUseGeoShader(); in addVarying()
48 SkASSERT(kVoid_GrSLType != varying->fType); in addVarying()
49 v.fType = varying->fType; in addVarying()
50 v.fIsFlat = use_flat_interpolation(interpolation, *fProgramBuilder->shaderCaps()); in addVarying()
51 fProgramBuilder->nameVariable(&v.fVsOut, 'v', name); in addVarying()
52 v.fVisibility = kNone_GrShaderFlags; in addVarying()
53 if (varying->isInVertexShader()) { in addVarying()
54 varying->fVsOut = v.fVsOut.c_str(); in addVarying()
55 v.fVisibility |= kVertex_GrShaderFlag; in addVarying()
58 fProgramBuilder->nameVariable(&v.fGsOut, 'g', name); in addVarying()
59 varying->fGsIn = v.fVsOut.c_str(); in addVarying()
60 varying->fGsOut = v.fGsOut.c_str(); in addVarying()
61 v.fVisibility |= kGeometry_GrShaderFlag; in addVarying()
63 if (varying->isInFragmentShader()) { in addVarying()
64 varying->fFsIn = (willUseGeoShader ? v.fGsOut : v.fVsOut).c_str(); in addVarying()
65 v.fVisibility |= kFragment_GrShaderFlag; in addVarying()
71 this->addAttribute(attr.asShaderVar()); in emitAttributes()
74 this->addAttribute(attr.asShaderVar()); in emitAttributes()
91 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in setNoPerspective()
97 fProgramBuilder->fVS.addFeature(bit, extension); in setNoPerspective()
98 if (fProgramBuilder->primitiveProcessor().willUseGeoShader()) { in setNoPerspective()
99 fProgramBuilder->fGS.addFeature(bit, extension); in setNoPerspective()
101 fProgramBuilder->fFS.addFeature(bit, extension); in setNoPerspective()
108 const VaryingInfo& v = this->fVaryings[i]; in finalize()
110 if (v.fVisibility & kVertex_GrShaderFlag) { in finalize()
113 if (v.fVisibility & kGeometry_GrShaderFlag) { in finalize()
118 if (v.fVisibility & kFragment_GrShaderFlag) { in finalize()
120 if (v.fVisibility & kGeometry_GrShaderFlag) { in finalize()
129 this->onFinalize(); in finalize()
134 vars[i].appendDecl(fProgramBuilder->shaderCaps(), out); in appendDecls()
135 out->append(";"); in appendDecls()
140 this->appendDecls(fVertexInputs, inputDecls); in getVertexDecls()
141 this->appendDecls(fVertexOutputs, outputDecls); in getVertexDecls()
145 this->appendDecls(fGeomInputs, inputDecls); in getGeomDecls()
146 this->appendDecls(fGeomOutputs, outputDecls); in getGeomDecls()
151 SkASSERT(k110_GrGLSLGeneration != fProgramBuilder->shaderCaps()->generation() || in getFragDecls()
153 this->appendDecls(fFragInputs, inputDecls); in getFragDecls()
154 this->appendDecls(fFragOutputs, outputDecls); in getFragDecls()