Lines Matching refs:wind
58 GrShaderVar wind("wind", kHalf_GrSLType); in emitGeometryShader() local
59 g->declareGlobal(wind); in emitGeometryShader()
64 g->codeAppendf("%s = sign(area_x2);", wind.c_str()); in emitGeometryShader()
76 position, coverage, wind.c_str()); in emitGeometryShader()
89 this->onEmitGeometryShader(g, wind, emitVertexFn.c_str()); in emitGeometryShader()
92 virtual void onEmitGeometryShader(GrGLSLGeometryBuilder*, const GrShaderVar& wind,
109 void onEmitGeometryShader(GrGLSLGeometryBuilder* g, const GrShaderVar& wind, in onEmitGeometryShader() argument
112 fShader->emitSetupCode(g, "pts", nullptr, wind.c_str(), &vars); in onEmitGeometryShader()
124 g->codeAppendf("int i = %s > 0 ? sk_InvocationID : 1 - sk_InvocationID;", wind.c_str()); in onEmitGeometryShader()
126 g->codeAppendf("float2 left = %s[%s > 0 ? (1 - i) * 2 : i + 1];", hullPts, wind.c_str()); in onEmitGeometryShader()
127 g->codeAppendf("float2 right = %s[%s > 0 ? i + 1 : (1 - i) * 2];", hullPts, wind.c_str()); in onEmitGeometryShader()
182 void onEmitGeometryShader(GrGLSLGeometryBuilder* g, const GrShaderVar& wind, in onEmitGeometryShader() argument
185 fShader->emitSetupCode(g, "pts", nullptr, wind.c_str(), &vars); in onEmitGeometryShader()
200 g->codeAppendf("float2 topright = %s[%s > 0 ? i + 1 : 3 - i];", hullPts, wind.c_str()); in onEmitGeometryShader()
201 g->codeAppendf("float2 bottomleft = %s[%s > 0 ? 3 - i : i + 1];", hullPts, wind.c_str()); in onEmitGeometryShader()
253 void onEmitGeometryShader(GrGLSLGeometryBuilder* g, const GrShaderVar& wind, in onEmitGeometryShader() argument
255 fShader->emitSetupCode(g, "pts", "sk_InvocationID", wind.c_str(), nullptr); in onEmitGeometryShader()
258 g->codeAppendf("float2 left = pts[%s > 0 ? sk_InvocationID : nextidx];", wind.c_str()); in onEmitGeometryShader()
259 g->codeAppendf("float2 right = pts[%s > 0 ? nextidx : sk_InvocationID];", wind.c_str()); in onEmitGeometryShader()
303 void onEmitGeometryShader(GrGLSLGeometryBuilder* g, const GrShaderVar& wind, in onEmitGeometryShader() argument
306 fShader->emitSetupCode(g, "pts", "sk_InvocationID", wind.c_str(), &vars); in onEmitGeometryShader()