Lines Matching refs:fsBuilder
66 GrGLProcessorFragmentShaderBuilder* fsBuilder = builder->getFragmentShaderBuilder();
68 fsBuilder->codeAppendf("\tfloat insetW = min(1.0, %s.z) - 0.5;\n", fsRectName);
69 fsBuilder->codeAppendf("\tfloat insetH = min(1.0, %s.w) - 0.5;\n", fsRectName);
70 fsBuilder->codeAppend("\tfloat outset = 0.5;\n");
73 fsBuilder->codeAppend("\tfloat spanW = insetW + outset;\n");
74 fsBuilder->codeAppend("\tfloat spanH = insetH + outset;\n");
78 fsBuilder->codeAppend("\tfloat scaleW = min(1.0, 2.0*insetW/spanW);\n");
79 fsBuilder->codeAppend("\tfloat scaleH = min(1.0, 2.0*insetH/spanH);\n");
82 fsBuilder->codeAppendf(
86 fsBuilder->codeAppendf(
91 fsBuilder->codeAppendf("\t%s = %s;\n", outputColor,
200 GrGLProcessorFragmentShaderBuilder* fsBuilder = builder->getFragmentShaderBuilder();
202 fsBuilder->codeAppendf("\tfloat insetW = min(1.0, %s.x) - 0.5;\n", fsWidthHeightName);
203 fsBuilder->codeAppendf("\tfloat insetH = min(1.0, %s.y) - 0.5;\n", fsWidthHeightName);
204 fsBuilder->codeAppend("\tfloat outset = 0.5;\n");
207 fsBuilder->codeAppend("\tfloat spanW = insetW + outset;\n");
208 fsBuilder->codeAppend("\tfloat spanH = insetH + outset;\n");
212 fsBuilder->codeAppend("\tfloat scaleW = min(1.0, 2.0*insetW/spanW);\n");
213 fsBuilder->codeAppend("\tfloat scaleH = min(1.0, 2.0*insetH/spanH);\n");
216 fsBuilder->codeAppendf("\tvec2 offset = %s.xy - %s.xy;\n",
217 fsBuilder->fragmentPosition(), fsRectEdgeName);
218 fsBuilder->codeAppendf("\tfloat perpDot = abs(offset.x * %s.w - offset.y * %s.z);\n",
220 fsBuilder->codeAppendf(
225 fsBuilder->codeAppendf("\tperpDot = abs(dot(offset, %s.zw));\n",
227 fsBuilder->codeAppendf(
232 fsBuilder->codeAppendf("\t%s = %s;\n", outputColor,