Lines Matching refs:wind
59 GrShaderVar wind("wind", kHalf_GrSLType); in emitGeometryShader() local
60 g->declareGlobal(wind); in emitGeometryShader()
61 Shader::CalcWind(proc, g, "pts", wind.c_str()); in emitGeometryShader()
65 g->codeAppendf("%s *= sk_in[0].sk_Position.w;", wind.c_str()); in emitGeometryShader()
83 fnBody.appendf("%s *= %s;", coverage, wind.c_str()); in emitGeometryShader()
86 fnBody.appendf("%s.x *= %s;", cornerCoverage, wind.c_str()); in emitGeometryShader()
90 "vertexpos", coverage ? coverage : wind.c_str(), cornerCoverage); in emitGeometryShader()
103 this->onEmitGeometryShader(proc, g, wind, emitVertexFn.c_str()); in emitGeometryShader()
107 const GrShaderVar& wind, const char* emitVertexFn) const = 0;
133 const GrShaderVar& wind, const char* emitVertexFn) const override { in onEmitGeometryShader() argument
134 fShader->emitSetupCode(g, "pts", wind.c_str()); in onEmitGeometryShader()
142 wind.c_str()); in onEmitGeometryShader()
144 g->codeAppendf("float2 right = pts[(i + (%s > 0 ? 1 : 2)) %% 3];", wind.c_str()); in onEmitGeometryShader()
145 g->codeAppendf("float2 left = pts[(i + (%s > 0 ? 2 : 1)) %% 3];", wind.c_str()); in onEmitGeometryShader()
227 const GrShaderVar& wind, const char* emitVertexFn) const override { in onEmitGeometryShader() argument
229 fShader->emitSetupCode(g, "pts", wind.c_str(), &hullPts); in onEmitGeometryShader()
239 g->codeAppendf("float2 topright = %s[%s > 0 ? i + 1 : 3 - i];", hullPts, wind.c_str()); in onEmitGeometryShader()
240 g->codeAppendf("float2 bottomleft = %s[%s > 0 ? 3 - i : i + 1];", hullPts, wind.c_str()); in onEmitGeometryShader()
296 const GrShaderVar& wind, const char* emitVertexFn) const override { in onEmitGeometryShader() argument
297 fShader->emitSetupCode(g, "pts", wind.c_str()); in onEmitGeometryShader()
306 wind.c_str(), proc.numInputPoints() - 1, proc.numInputPoints()); in onEmitGeometryShader()
308 wind.c_str(), proc.numInputPoints() - 1, proc.numInputPoints()); in onEmitGeometryShader()