Lines Matching refs:wind
58 GrShaderVar wind("wind", kHalf_GrSLType); in emitGeometryShader() local
59 g->declareGlobal(wind); in emitGeometryShader()
67 g->codeAppendf("%s = sign(area_x2);", wind.c_str()); in emitGeometryShader()
72 g->codeAppendf("%s = sk_in[0].sk_Position.w;", wind.c_str()); in emitGeometryShader()
85 position, coverage, wind.c_str()); in emitGeometryShader()
98 this->onEmitGeometryShader(g, wind, emitVertexFn.c_str()); in emitGeometryShader()
101 virtual void onEmitGeometryShader(GrGLSLGeometryBuilder*, const GrShaderVar& wind,
118 void onEmitGeometryShader(GrGLSLGeometryBuilder* g, const GrShaderVar& wind, in onEmitGeometryShader() argument
121 fShader->emitSetupCode(g, "pts", nullptr, wind.c_str(), &vars); in onEmitGeometryShader()
133 g->codeAppendf("int i = %s > 0 ? sk_InvocationID : 1 - sk_InvocationID;", wind.c_str()); in onEmitGeometryShader()
135 g->codeAppendf("float2 left = %s[%s > 0 ? (1 - i) * 2 : i + 1];", hullPts, wind.c_str()); in onEmitGeometryShader()
136 g->codeAppendf("float2 right = %s[%s > 0 ? i + 1 : (1 - i) * 2];", hullPts, wind.c_str()); in onEmitGeometryShader()
191 void onEmitGeometryShader(GrGLSLGeometryBuilder* g, const GrShaderVar& wind, in onEmitGeometryShader() argument
194 fShader->emitSetupCode(g, "pts", nullptr, wind.c_str(), &vars); in onEmitGeometryShader()
209 g->codeAppendf("float2 topright = %s[%s > 0 ? i + 1 : 3 - i];", hullPts, wind.c_str()); in onEmitGeometryShader()
210 g->codeAppendf("float2 bottomleft = %s[%s > 0 ? 3 - i : i + 1];", hullPts, wind.c_str()); in onEmitGeometryShader()
262 void onEmitGeometryShader(GrGLSLGeometryBuilder* g, const GrShaderVar& wind, in onEmitGeometryShader() argument
264 fShader->emitSetupCode(g, "pts", "sk_InvocationID", wind.c_str(), nullptr); in onEmitGeometryShader()
267 g->codeAppendf("float2 left = pts[%s > 0 ? sk_InvocationID : nextidx];", wind.c_str()); in onEmitGeometryShader()
268 g->codeAppendf("float2 right = pts[%s > 0 ? nextidx : sk_InvocationID];", wind.c_str()); in onEmitGeometryShader()
312 void onEmitGeometryShader(GrGLSLGeometryBuilder* g, const GrShaderVar& wind, in onEmitGeometryShader() argument
315 fShader->emitSetupCode(g, "pts", "sk_InvocationID", wind.c_str(), &vars); in onEmitGeometryShader()