/third_party/skia/src/gpu/effects/ |
D | GrAtlasedShaderHelpers.h | 31 args.fVertBuilder->codeAppendf(R"code( in append_index_uv_varyings() 37 args.fVertBuilder->codeAppendf(R"code( in append_index_uv_varyings() 43 args.fVertBuilder->codeAppendf(R"code( in append_index_uv_varyings() 52 args.fVertBuilder->codeAppendf(R"code( in append_index_uv_varyings() 58 args.fVertBuilder->codeAppendf(R"code( in append_index_uv_varyings() 66 args.fVertBuilder->codeAppendf(R"code( in append_index_uv_varyings() 78 args.fVertBuilder->codeAppendf( in append_index_uv_varyings() 87 args.fVertBuilder->codeAppendf("%s = %s(texIdx);", texIdx->vsOut(), cast); in append_index_uv_varyings() 92 args.fVertBuilder->codeAppendf("%s = unormTexCoords;", st->vsOut()); in append_index_uv_varyings() 104 args.fFragBuilder->codeAppendf("%s = float4(1, 1, 1, 1);", colorName); in append_multitexture_lookup() [all …]
|
D | GrRRectEffect.cpp | 198 fragBuilder->codeAppendf("float2 dxy0 = %s.LT - sk_FragCoord.xy;", rectName); in emitCode() 199 fragBuilder->codeAppendf("float2 dxy1 = sk_FragCoord.xy - %s.RB;", rectName); in emitCode() 201 fragBuilder->codeAppendf("half alpha = half(%s);", clampedCircleDistance.c_str()); in emitCode() 204 fragBuilder->codeAppendf("float2 dxy = max(%s.LT - sk_FragCoord.xy, 0.0);", in emitCode() 206 fragBuilder->codeAppendf("half rightAlpha = half(saturate(%s.R - sk_FragCoord.x));", in emitCode() 208 fragBuilder->codeAppendf("half bottomAlpha = half(saturate(%s.B - sk_FragCoord.y));", in emitCode() 210 fragBuilder->codeAppendf("half alpha = bottomAlpha * rightAlpha * half(%s);", in emitCode() 214 fragBuilder->codeAppendf("float2 dxy = max(float2(sk_FragCoord.x - %s.R, " in emitCode() 217 fragBuilder->codeAppendf("half leftAlpha = half(saturate(sk_FragCoord.x - %s.L));", in emitCode() 219 fragBuilder->codeAppendf("half bottomAlpha = half(saturate(%s.B - sk_FragCoord.y));", in emitCode() [all …]
|
D | GrBezierEffect.cpp | 62 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), gp.inConicCoeffs().name()); in onEmitCode() 66 fragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode() 109 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); in onEmitCode() 110 fragBuilder->codeAppendf("%s = dFdy(%s.xyz);", dklmdy.c_str(), v.fsIn()); in onEmitCode() 111 fragBuilder->codeAppendf("%s = 2.0 * %s.x * %s.x - %s.y * %s.z - %s.z * %s.y;", in onEmitCode() 116 fragBuilder->codeAppendf("%s = 2.0 * %s.x * %s.x - %s.y * %s.z - %s.z * %s.y;", in onEmitCode() 121 fragBuilder->codeAppendf("%s = float2(%s, %s);", gF.c_str(), dfdx.c_str(), in onEmitCode() 123 fragBuilder->codeAppendf("%s = sqrt(dot(%s, %s));", in onEmitCode() 125 fragBuilder->codeAppendf("%s = %s.x*%s.x - %s.y*%s.z;", in onEmitCode() 127 fragBuilder->codeAppendf("%s = abs(%s);", func.c_str(), func.c_str()); in onEmitCode() [all …]
|
D | GrDistanceFieldGeoProc.cpp | 79 fragBuilder->codeAppendf("half4 %s;\n", args.fOutputColor); in onEmitCode() 110 fragBuilder->codeAppendf("float2 uv = %s;\n", uv.fsIn()); in onEmitCode() 119 fragBuilder->codeAppendf("distance -= %s;", distanceAdjustUniName); in onEmitCode() 130 fragBuilder->codeAppendf( in onEmitCode() 133 fragBuilder->codeAppendf( in onEmitCode() 144 fragBuilder->codeAppendf("half st_grad_len = length(half2(dFdy(%s)));", st.fsIn()); in onEmitCode() 146 fragBuilder->codeAppendf("half st_grad_len = length(half2(dFdx(%s)));", st.fsIn()); in onEmitCode() 164 fragBuilder->codeAppendf("half2 Jdx = half2(dFdx(%s));", st.fsIn()); in onEmitCode() 165 fragBuilder->codeAppendf("half2 Jdy = half2(dFdy(%s));", st.fsIn()); in onEmitCode() 185 fragBuilder->codeAppendf("half4 %s = half4(val);", args.fOutputCoverage); in onEmitCode() [all …]
|
D | GrTextureEffect.cpp | 317 fb->codeAppendf("return "); in emitCode() 319 fb->codeAppendf(";"); in emitCode() 340 fb->codeAppendf("float2 inCoord = %s;", args.fSampleCoord); in emitCode() 437 fb->codeAppendf("subsetCoord.%s = inCoord.%s;", coordSwizzle, coordSwizzle); in emitCode() 441 fb->codeAppendf( in emitCode() 461 fb->codeAppendf("float w = %s.%s - %s.%s;", subsetName, subsetStopSwizzle, in emitCode() 463 fb->codeAppendf("float w2 = 2 * w;"); in emitCode() 464 fb->codeAppendf("float d = inCoord.%s - %s.%s;", coordSwizzle, subsetName, in emitCode() 468 fb->codeAppendf("subsetCoord.%s = o + %s.%s;", coordSwizzle, subsetName, in emitCode() 470 fb->codeAppendf("%s = w - o + %s.%s;", extraCoord, subsetName, in emitCode() [all …]
|
D | GrMatrixConvolutionEffect.cpp | 168 fragBuilder->codeAppendf("for (int i = 0; i < %d; ++i)", (int)kernelArea); in emitKernelBlock() 178 fragBuilder->codeAppendf("k = %s.w + %s;", kernelSample.c_str(), kernelBias); in emitKernelBlock() 179 fragBuilder->codeAppendf("sourceOffset.y = floor(half(i) / %d);", kernelWidth); in emitKernelBlock() 180 fragBuilder->codeAppendf("sourceOffset.x = half(i) - sourceOffset.y * %d;", kernelWidth); in emitKernelBlock() 182 fragBuilder->codeAppendf("sourceOffset = half2(%d, %d);", loc.x(), loc.y()); in emitKernelBlock() 185 fragBuilder->codeAppendf("k = %s[%d][%d];", kernel, offset / 4, offset & 0x3); in emitKernelBlock() 189 fragBuilder->codeAppendf("half4 c = %s;", sample.c_str()); in emitKernelBlock() 225 fragBuilder->codeAppendf("float2 coord = %s - %s;", args.fSampleCoord, kernelOffset); in emitCode() 237 fragBuilder->codeAppendf("half4 color;"); in emitCode() 239 fragBuilder->codeAppendf("color = sum * %s + %s;", gain, bias); in emitCode() [all …]
|
D | GrModulateAtlasCoverageEffect.cpp | 49 f->codeAppendf("if (all(greaterThan(sk_FragCoord.xy, %s.xy)) && " in onMakeProgramImpl() 53 f->codeAppendf("{"); in onMakeProgramImpl() 55 f->codeAppendf("coverage = %s.a;", atlasCoverage.c_str()); in onMakeProgramImpl() 56 f->codeAppendf("}"); in onMakeProgramImpl() 62 f->codeAppendf("coverage = coverage * %s.x + %s.y;", in onMakeProgramImpl() 64 f->codeAppendf("return %s * coverage;", inputColor.c_str()); in onMakeProgramImpl()
|
D | GrBicubicEffect.cpp | 44 fragBuilder->codeAppendf("float2 coord = %s - float2(0.5);", args.fSampleCoord); in emitCode() 47 fragBuilder->codeAppendf("half4 wx = %s * half4(1.0, f.x, f.x * f.x, f.x * f.x * f.x);", in emitCode() 49 fragBuilder->codeAppendf("half4 wy = %s * half4(1.0, f.y, f.y * f.y, f.y * f.y * f.y);", in emitCode() 58 fragBuilder->codeAppendf("rowColors[%d] = %s;", x, childStr.c_str()); in emitCode() 60 fragBuilder->codeAppendf( in emitCode() 69 fragBuilder->codeAppendf("float coord = %s.%s - 0.5;", args.fSampleCoord, d); in emitCode() 73 fragBuilder->codeAppendf("half4 w = %s * half4(1.0, f, f2, f2 * f);", coeffs); in emitCode() 83 fragBuilder->codeAppendf("c[%d] = %s;", i, childStr.c_str()); in emitCode() 99 fragBuilder->codeAppendf("return bicubicColor;"); in emitCode()
|
D | GrYUVtoRGBEffect.cpp | 251 fragBuilder->codeAppendf("float2 snappedCoords = %s;", args.fSampleCoord); in onMakeProgramImpl() 261 fragBuilder->codeAppendf("half4 color;"); in onMakeProgramImpl() 277 fragBuilder->codeAppendf( in onMakeProgramImpl() 286 fragBuilder->codeAppendf("color.a = 1;"); in onMakeProgramImpl() 294 fragBuilder->codeAppendf( in onMakeProgramImpl() 301 fragBuilder->codeAppendf("color.rgb *= color.a;"); in onMakeProgramImpl() 303 fragBuilder->codeAppendf("return color;"); in onMakeProgramImpl()
|
D | GrBitmapTextGeoProc.cpp | 70 fragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode() 94 fragBuilder->codeAppendf("%s = %s * texColor;", args.fOutputColor, args.fOutputColor); in onEmitCode() 95 fragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in onEmitCode() 97 fragBuilder->codeAppendf("half4 %s = texColor;", args.fOutputCoverage); in onEmitCode()
|
/third_party/skia/gm/ |
D | fwidth_squircle.cpp | 116 v->codeAppendf("float2x2 R = float2x2(cos(.05), sin(.05), -sin(.05), cos(.05));"); in makeProgramImpl() 118 v->codeAppendf("%s = bboxcoord * 1.25;", squircleCoord.vsOut()); in makeProgramImpl() 119 v->codeAppendf("float3 vertexpos = float3(bboxcoord * 100 * R + 100, 1);"); in makeProgramImpl() 120 v->codeAppendf("vertexpos = %s * vertexpos;", in makeProgramImpl() 125 f->codeAppendf("float golden_ratio = 1.61803398875;"); in makeProgramImpl() 126 f->codeAppendf("float pi = 3.141592653589793;"); in makeProgramImpl() 127 f->codeAppendf("float x = abs(%s.x), y = abs(%s.y);", in makeProgramImpl() 131 f->codeAppendf("float fn = half(pow(x, golden_ratio*pi) + " in makeProgramImpl() 133 f->codeAppendf("float fnwidth = fwidth(fn);"); in makeProgramImpl() 134 f->codeAppendf("fnwidth += 1e-10;"); // Guard against divide-by-zero. in makeProgramImpl() [all …]
|
D | fp_sample_chaining.cpp | 50 args.fFragBuilder->codeAppendf("return %s;\n", sample.c_str()); in onMakeProgramImpl() 85 args.fFragBuilder->codeAppendf("float2 coord = %s + float2(0, 8);", in onMakeProgramImpl() 88 args.fFragBuilder->codeAppendf("return %s;\n", sample.c_str()); in onMakeProgramImpl() 115 fb->codeAppendf("float2 coord = %s / 64.0;", args.fSampleCoord); in onMakeProgramImpl() 116 fb->codeAppendf("coord = floor(coord * 4) / 3;"); in onMakeProgramImpl() 117 fb->codeAppendf("return half2(coord).rg01;\n"); in onMakeProgramImpl()
|
/third_party/skia/src/gpu/ops/ |
D | AtlasInstancedHelper.cpp | 52 args.fVertBuilder->codeAppendf(R"( in injectShaderCode() 69 args.fVertBuilder->codeAppendf(R"( in injectShaderCode() 74 args.fFragBuilder->codeAppendf(R"( in injectShaderCode() 82 args.fFragBuilder->codeAppendf(R"(.a; in injectShaderCode() 85 args.fFragBuilder->codeAppendf("half atlasCoverage = "); in injectShaderCode() 87 args.fFragBuilder->codeAppendf(".a;"); in injectShaderCode() 91 args.fFragBuilder->codeAppendf("%s *= (1 - atlasCoverage);", args.fOutputCoverage); in injectShaderCode() 93 args.fFragBuilder->codeAppendf("%s *= atlasCoverage;", args.fOutputCoverage); in injectShaderCode()
|
D | FillRRectOp.cpp | 581 f->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode() 589 v->codeAppendf("float aa_bloat_multiplier = %i;", in onEmitCode() 634 v->codeAppendf("coverage = (coverage - .5) * aa_bloat_multiplier + .5;"); in onEmitCode() 708 v->codeAppendf( "%s.xy = float2(0, coverage * coverage_multiplier);", in onEmitCode() 717 v->codeAppendf( "%s.xy = float2(arccoord.x+1, arccoord.y);", arcCoord.vsOut()); in onEmitCode() 720 v->codeAppendf("float2x2 derivatives = inverse(skewmatrix);"); in onEmitCode() 721 v->codeAppendf("%s.zw = derivatives * (arccoord/radii * 2);", arcCoord.vsOut()); in onEmitCode() 726 f->codeAppendf("float x_plus_1=%s.x, y=%s.y;", arcCoord.fsIn(), arcCoord.fsIn()); in onEmitCode() 727 f->codeAppendf("half coverage;"); in onEmitCode() 728 f->codeAppendf("if (0 == x_plus_1) {"); in onEmitCode() [all …]
|
D | DashOp.cpp | 779 vertBuilder->codeAppendf("%s = %s;", dashParams.vsOut(), dce.fInDashParams.name()); in onEmitCode() 784 vertBuilder->codeAppendf("%s = %s;", circleParams.vsOut(), dce.fInCircleParams.name()); in onEmitCode() 788 fragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode() 804 fragBuilder->codeAppendf("half xShifted = half(%s.x - floor(%s.x / %s.z) * %s.z);", in onEmitCode() 807 fragBuilder->codeAppendf("half2 fragPosShifted = half2(xShifted, half(%s.y));", in onEmitCode() 809 fragBuilder->codeAppendf("half2 center = half2(%s.y, 0.0);", circleParams.fsIn()); in onEmitCode() 812 fragBuilder->codeAppendf("half diff = dist - %s.x;", circleParams.fsIn()); in onEmitCode() 816 fragBuilder->codeAppendf("half alpha = 1.0;"); in onEmitCode() 817 fragBuilder->codeAppendf("alpha *= dist < %s.x + 0.5 ? 1.0 : 0.0;", circleParams.fsIn()); in onEmitCode() 819 fragBuilder->codeAppendf("half4 %s = half4(alpha);", args.fOutputCoverage); in onEmitCode() [all …]
|
D | DrawAtlasPathOp.cpp | 87 args.fVertBuilder->codeAppendf(R"( in onEmitCode() 91 args.fVertBuilder->codeAppendf(R"( in onEmitCode() 96 args.fVertBuilder->codeAppendf(R"( in onEmitCode() 102 args.fFragBuilder->codeAppendf("half4 %s = half4(1);", args.fOutputCoverage); in onEmitCode() 105 args.fFragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode()
|
D | GrOvalOpFactory.cpp | 172 vertBuilder->codeAppendf("%s = (1.0 - %s.w) / 2.0;", capRadius.vsOut(), in onEmitCode() 177 fragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode() 219 fragBuilder->codeAppendf( in onEmitCode() 229 fragBuilder->codeAppendf("half4 %s = half4(edgeAlpha);", args.fOutputCoverage); in onEmitCode() 341 vertBuilder->codeAppendf("float4 dashParams = %s;", bcscgp.fInDashParams.name()); in onEmitCode() 396 vertBuilder->codeAppendf("%s = half4(wrapDashes);", wrapDashes.vsOut()); in onEmitCode() 397 vertBuilder->codeAppendf("%s = lastIntervalLength;", lastIntervalLength.vsOut()); in onEmitCode() 398 fragBuilder->codeAppendf("half4 wrapDashes = %s;", wrapDashes.fsIn()); in onEmitCode() 399 fragBuilder->codeAppendf("half lastIntervalLength = %s;", lastIntervalLength.fsIn()); in onEmitCode() 402 fragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode() [all …]
|
D | QuadPerEdgeAA.cpp | 683 args.fVertBuilder->codeAppendf("float3 position = %s.xyz;", in makeProgramImpl() 686 args.fVertBuilder->codeAppendf("float2 position = %s.xy;", in makeProgramImpl() 708 args.fFragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in makeProgramImpl() 718 args.fFragBuilder->codeAppendf("half4 %s = half4(1);", args.fOutputColor); in makeProgramImpl() 732 args.fVertBuilder->codeAppendf("%s = %s;", in makeProgramImpl() 734 args.fFragBuilder->codeAppendf("texCoord = %s.xy / %s.z;", in makeProgramImpl() 752 args.fFragBuilder->codeAppendf( in makeProgramImpl() 773 args.fVertBuilder->codeAppendf("%s = %s.w * %s.z;", in makeProgramImpl() 776 args.fFragBuilder->codeAppendf("float coverage = %s * sk_FragCoord.w;", in makeProgramImpl() 779 args.fVertBuilder->codeAppendf("%s = %s;", in makeProgramImpl() [all …]
|
D | AAConvexPathRenderer.cpp | 621 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), qe.fInQuadEdge.name()); in makeProgramImpl() 624 fragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in makeProgramImpl() 639 fragBuilder->codeAppendf("half edgeAlpha;"); in makeProgramImpl() 642 fragBuilder->codeAppendf("half2 duvdx = half2(dFdx(%s.xy));", v.fsIn()); in makeProgramImpl() 643 fragBuilder->codeAppendf("half2 duvdy = half2(dFdy(%s.xy));", v.fsIn()); in makeProgramImpl() 644 fragBuilder->codeAppendf("if (%s.z > 0.0 && %s.w > 0.0) {", v.fsIn(), v.fsIn()); in makeProgramImpl() 646 fragBuilder->codeAppendf("edgeAlpha = half(min(min(%s.z, %s.w) + 0.5, 1.0));", v.fsIn(), in makeProgramImpl() 648 fragBuilder->codeAppendf ("} else {"); in makeProgramImpl() 649 fragBuilder->codeAppendf("half2 gF = half2(half(2.0*%s.x*duvdx.x - duvdx.y)," in makeProgramImpl() 652 fragBuilder->codeAppendf("edgeAlpha = half(%s.x*%s.x - %s.y);", v.fsIn(), v.fsIn(), in makeProgramImpl() [all …]
|
/third_party/skia/src/gpu/tessellate/shaders/ |
D | GrStrokeTessellationShader_InstancedImpl.cpp | 40 args.fVertBuilder->codeAppendf(R"( in onEmitCode() 50 args.fVertBuilder->codeAppendf(R"( in onEmitCode() 62 args.fVertBuilder->codeAppendf("%s = dynamicColorAttr;", dynamicColor.vsOut()); in onEmitCode() 74 args.fVertBuilder->codeAppendf(R"( in onEmitCode() 86 args.fVertBuilder->codeAppendf("float2x2 AFFINE_MATRIX = float2x2(%s);\n", affineMatrixName); in onEmitCode() 87 args.fVertBuilder->codeAppendf("float2 TRANSLATE = %s;\n", translateName); in onEmitCode() 183 args.fVertBuilder->codeAppendf(R"( in onEmitCode() 259 args.fVertBuilder->codeAppendf(R"( in onEmitCode()
|
D | GrPathTessellationShader.cpp | 127 args.fVertBuilder->codeAppendf("float2x2 AFFINE_MATRIX = float2x2(%s);", affineMatrix); in onEmitCode() 128 args.fVertBuilder->codeAppendf("float2 TRANSLATE = %s;", translate); in onEmitCode() 140 args.fFragBuilder->codeAppendf("half4 %s = %s;", args.fOutputColor, color); in onEmitCode() 142 args.fFragBuilder->codeAppendf("half4 %s = %s;", in onEmitCode() 145 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in onEmitCode()
|
/third_party/skia/src/gpu/ |
D | GrXferProcessor.cpp | 201 fragBuilder->codeAppendf("%s.a = max(max(%s.r, %s.g), %s.b);", in adjust_for_lcd_coverage() 231 fragBuilder->codeAppendf("if (all(lessThanEqual(%s.rgb, half3(0)))) {" in emitCode() 244 fragBuilder->codeAppendf("half4 %s;", outColor); in emitCode() 256 fragBuilder->codeAppendf("%s = %s;", args.fOutputPrimary, outColor); in emitCode() 272 x->codeAppendf("%s = %s.%s;", outColor, outColor, swizzle.asString().c_str()); in emitWriteSwizzle() 274 x->codeAppendf("%s = %s.%s;", in emitWriteSwizzle() 294 fragBuilder->codeAppendf("half3 lerpRGB = mix(%s.aaa, %s.aaa, %s.rgb);", in DefaultCoverageModulation() 299 fragBuilder->codeAppendf("%s = %s * %s + (half4(1.0) - %s) * %s;", in DefaultCoverageModulation() 306 fragBuilder->codeAppendf("%s.a = max(max(lerpRGB.r, lerpRGB.b), lerpRGB.g);", outColor); in DefaultCoverageModulation()
|
D | GrDefaultGeoProcFactory.cpp | 111 fragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode() 118 vertBuilder->codeAppendf("half4 color = %s;", gp.fInColor.name()); in onEmitCode() 126 vertBuilder->codeAppendf("half4 color = %s;", colorUniformName); in onEmitCode() 131 vertBuilder->codeAppendf("color = color * %s;", gp.fInCoverage.name()); in onEmitCode() 133 vertBuilder->codeAppendf("%s = color;\n", varying.vsOut()); in onEmitCode() 134 fragBuilder->codeAppendf("%s = %s;", args.fOutputColor, varying.fsIn()); in onEmitCode() 165 fragBuilder->codeAppendf("half alpha = 1.0;"); in onEmitCode() 168 fragBuilder->codeAppendf("half4 %s = half4(saturate(alpha));", in onEmitCode() 171 fragBuilder->codeAppendf("half4 %s = half4(alpha);", args.fOutputCoverage); in onEmitCode() 174 fragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in onEmitCode() [all …]
|
D | GrGeometryProcessor.cpp | 121 vb->codeAppendf("%s = %s;\n", baseLocalCoord.vsOut(), localCoordsVar.getName().c_str()); in collectTransforms() 285 vb->codeAppendf("%s = float3x2(%s) * %s", in emitTransformCode() 290 vb->codeAppendf("%s = (%s * %s).xy", in emitTransformCode() 297 vb->codeAppendf("%s = %s * %s", in emitTransformCode() 320 fragBuilder->codeAppendf("%s = %s;", outputName, stagedLocalVarName); in setupUniformColor() 322 fragBuilder->codeAppendf("%s = max(%s, half4(0));", outputName, outputName); in setupUniformColor() 355 vertBuilder->codeAppendf("float%d %s = %s;", in write_passthrough_vertex_position() 390 vertBuilder->codeAppendf("float3 %s = %s.xz1 * %s + %s.yw0;\n", in write_vertex_position() 396 vertBuilder->codeAppendf("float3 %s = %s * %s;\n", in write_vertex_position() 407 vertBuilder->codeAppendf("float3 %s = (%s * %s.xy1);", in write_vertex_position() [all …]
|
/third_party/skia/src/gpu/glsl/ |
D | GrGLSLProgramBuilder.cpp | 90 fFS.codeAppendf("// Stage %d, %s\n", fStageIndex, geomProc.name()); in emitAndInstallPrimProc() 91 fVS.codeAppendf("// Primitive Processor %s\n", geomProc.name()); in emitAndInstallPrimProc() 155 fFS.codeAppendf("half4 %s;", output.c_str()); in emitFragProc() 181 fFS.codeAppendf( in emitFragProc() 184 fFS.codeAppendf("%s = %s(%s);", output.c_str(), impl.functionName(), input.c_str()); in emitFragProc() 253 fFS.codeAppendf("float2 %s = %s.xy / %s.z;\n", in writeFPFunction() 316 fFS.codeAppendf("half2 _dstTexCoord = (half2(sk_FragCoord.xy) - %s.xy) * %s.zw;\n", in emitAndInstallDstTexture() 324 fFS.codeAppendf("%s = ", dstColor); in emitAndInstallDstTexture() 341 fFS.codeAppendf("%s = ", dstColor); in emitAndInstallDstTexture()
|