Lines Matching refs:varying
130 // sampled with a series of matrices applied to local coords. For each such FP a varying is
131 // added to the varying handler and added to 'result'.
167 // We add a varying if we're in a chain of matrices multiplied by local or device coords.
168 // If the coord is the untransformed local coord we add a varying. We don't if it is
170 // course, if the FP doesn't directly use its coords then we don't add a varying.
174 // Associate the varying with the highest possible node in the FP tree that shares the
180 // If there is an already a varying that incorporates all matrices from the root to
182 auto& [varying, inputCoords, varyingIdx] = fTransformVaryingsMap[lastMatrixFP];
183 if (varying.type() == kVoid_GrSLType) {
184 varying = GrGLSLVarying(hasPerspective ? kFloat3_GrSLType : kFloat2_GrSLType);
187 varyingHandler->addVarying(strVaryingName.c_str(), &varying);
192 // The FP will use the varying in the fragment shader as its coords.
193 varyingFSVar = varying.fsInVar();
206 // If we have a varying then we never need a param. Otherwise, if one of our
242 // to either the base coords or an ancestor FP that has an associated varying.
245 // If we hit an ancestor with a varying on our walk up then save off the varying as the
251 // Can stop here, as this varying already holds all transforms from higher FPs
253 // starting FP to this varying.
254 inputCoords = iter->second.varying.vsOutVar();
258 // or a parent varying. Getting here means this FP was sampled with a uniform matrix
260 // matrix samples and thus this node wasn't assigned a varying.
283 if (info.varying.type() == kFloat2_GrSLType) {
286 info.varying.vsOut(),
291 info.varying.vsOut(),
296 SkASSERT(info.varying.type() == kFloat3_GrSLType);
298 info.varying.vsOut(),