/external/skia/src/gpu/ganesh/effects/ |
D | GrDistanceFieldGeoProc.cpp | 114 fragBuilder->codeAppend("half4 texColor;"); in onEmitCode() 118 fragBuilder->codeAppend("half distance = " in onEmitCode() 125 fragBuilder->codeAppend("half afwidth;"); in onEmitCode() 151 fragBuilder->codeAppend("afwidth = abs(" SK_DistanceFieldAAFactor "*st_grad_len);"); in onEmitCode() 156 fragBuilder->codeAppend("half2 dist_grad = half2(float2(dFdx(distance), " in onEmitCode() 160 fragBuilder->codeAppend("half dg_len2 = dot(dist_grad, dist_grad);"); in onEmitCode() 161 fragBuilder->codeAppend("if (dg_len2 < 0.0001) {"); in onEmitCode() 162 fragBuilder->codeAppend("dist_grad = half2(0.7071, 0.7071);"); in onEmitCode() 163 fragBuilder->codeAppend("} else {"); in onEmitCode() 164 fragBuilder->codeAppend("dist_grad = dist_grad*half(inversesqrt(dg_len2));"); in onEmitCode() [all …]
|
D | GrShadowGeoProc.cpp | 32 fragBuilder->codeAppend("half3 shadowParams;"); in onEmitCode() 44 fragBuilder->codeAppend("half d = length(shadowParams.xy);"); in onEmitCode() 45 fragBuilder->codeAppend("float2 uv = float2(shadowParams.z * (1.0 - d), 0.5);"); in onEmitCode() 46 fragBuilder->codeAppend("half factor = "); in onEmitCode() 48 fragBuilder->codeAppend(".a;"); in onEmitCode()
|
D | GrBicubicEffect.cpp | 46 fragBuilder->codeAppend("half2 f = half2(fract(coord));"); in emitCode() 47 fragBuilder->codeAppend("coord += 0.5 - f;"); in emitCode() 52 fragBuilder->codeAppend("half4 rowColors[4];"); in emitCode() 64 fragBuilder->codeAppend( in emitCode() 69 fragBuilder->codeAppend("half f = half(fract(coord));"); in emitCode() 70 fragBuilder->codeAppend("coord += 0.5 - f;"); in emitCode() 71 fragBuilder->codeAppend("half f2 = f * f;"); in emitCode() 73 fragBuilder->codeAppend("half4 c[4];"); in emitCode() 84 fragBuilder->codeAppend( in emitCode() 91 fragBuilder->codeAppend("bicubicColor = saturate(bicubicColor);"); in emitCode() [all …]
|
D | GrTextureEffect.cpp | 504 fb->codeAppend("{"); in emitCode() 510 fb->codeAppend("float m = mod(d, w2);"); in emitCode() 511 fb->codeAppend("float o = mix(m, w2 - m, step(w, m));"); in emitCode() 518 fb->codeAppend("float hw = w/2;"); in emitCode() 519 fb->codeAppend("float n = mod(d - hw, w2);"); in emitCode() 522 fb->codeAppend("}"); in emitCode() 525 fb->codeAppend("{"); in emitCode() 533 fb->codeAppend("}"); in emitCode() 564 fb->codeAppend("float2 extraRepeatCoord;"); in emitCode() 567 fb->codeAppend("half repeatCoordWeightX;"); in emitCode() [all …]
|
D | GrRRectEffect.cpp | 202 fragBuilder->codeAppend("float2 dxy = max(max(dxy0, dxy1), 0.0);"); in emitCode() 250 fragBuilder->codeAppend("float2 dxy = max(float2(dxy0.x, max(dxy0.y, dy1)), 0.0);"); in emitCode() 259 fragBuilder->codeAppend("float2 dxy = max(float2(max(dxy0.x, dx1), dxy0.y), 0.0);"); in emitCode() 268 fragBuilder->codeAppend("float2 dxy = max(float2(dxy1.x, max(dy0, dxy1.y)), 0.0);"); in emitCode() 277 fragBuilder->codeAppend("float2 dxy = max(float2(max(dx0, dxy1.x), dxy1.y), 0.0);"); in emitCode() 286 fragBuilder->codeAppend("alpha = 1.0 - alpha;"); in emitCode() 567 fragBuilder->codeAppend("float2 dxy = max(max(dxy0, dxy1), 0.0);"); in emitCode() 586 fragBuilder->codeAppend("float2 dxy = max(max(dxy0, dxy1), 0.0);"); in emitCode() 599 fragBuilder->codeAppend("half implicit = half(dot(Z, dxy) - 1.0);"); in emitCode() 601 fragBuilder->codeAppend("half grad_dot = half(4.0 * dot(Z, Z));"); in emitCode() [all …]
|
D | GrConvexPolyEffect.cpp | 110 fragBuilder->codeAppend("half alpha = 1.0;\n" in onMakeProgramImpl() 116 fragBuilder->codeAppend("alpha *= saturate(edge);\n"); in onMakeProgramImpl() 118 fragBuilder->codeAppend("alpha *= step(0.5, edge);\n"); in onMakeProgramImpl() 123 fragBuilder->codeAppend("alpha = 1.0 - alpha;\n"); in onMakeProgramImpl()
|
D | GrMatrixConvolutionEffect.cpp | 175 fragBuilder->codeAppend("half k;"); in emitKernelBlock() 176 fragBuilder->codeAppend("half2 sourceOffset;"); in emitKernelBlock() 193 fragBuilder->codeAppend("c = unpremul(c);"); in emitKernelBlock() 194 fragBuilder->codeAppend("c.rgb = saturate(c.rgb);"); in emitKernelBlock() 196 fragBuilder->codeAppend("sum += c * k;"); in emitKernelBlock() 226 fragBuilder->codeAppend("half4 sum = half4(0);"); in emitCode()
|
D | GrAtlasedShaderHelpers.h | 97 args.fFragBuilder->codeAppend("; } else "); 103 args.fFragBuilder->codeAppend("; }");
|
D | GrModulateAtlasCoverageEffect.cpp | 49 f->codeAppend("half coverage = 0;"); in onMakeProgramImpl()
|
D | GrBezierEffect.cpp | 286 fragBuilder->codeAppend("edgeAlpha = sqrt(edgeAlpha * edgeAlpha / dot(gF, gF));"); in onEmitCode() 287 fragBuilder->codeAppend("edgeAlpha = max(1.0 - edgeAlpha, 0.0);"); in onEmitCode()
|
D | GrYUVtoRGBEffect.cpp | 257 fragBuilder->codeAppend("snappedCoords.x = floor(snappedCoords.x) + 0.5;"); in onMakeProgramImpl() 260 fragBuilder->codeAppend("snappedCoords.y = floor(snappedCoords.y) + 0.5;"); in onMakeProgramImpl()
|
/external/skia/src/gpu/ganesh/ops/ |
D | FillRRectOp.cpp | 641 v->codeAppend("float2 corner = corner_and_radius_outsets.xy;"); in onEmitCode() 642 v->codeAppend("float2 radius_outset = corner_and_radius_outsets.zw;"); in onEmitCode() 643 v->codeAppend("float2 aa_bloat_direction = aa_bloat_and_coverage.xy;"); in onEmitCode() 644 v->codeAppend("float is_linear_coverage = aa_bloat_and_coverage.w;"); in onEmitCode() 647 v->codeAppend("float2 pixellength = inversesqrt(" in onEmitCode() 649 v->codeAppend("float4 normalized_axis_dirs = skew * pixellength.xyxy;"); in onEmitCode() 650 v->codeAppend("float2 axiswidths = (abs(normalized_axis_dirs.xy) + " in onEmitCode() 652 v->codeAppend("float2 aa_bloatradius = axiswidths * pixellength * .5;"); in onEmitCode() 655 v->codeAppend("float4 radii_and_neighbors = radii_selector" in onEmitCode() 657 v->codeAppend("float2 radii = radii_and_neighbors.xy;"); in onEmitCode() [all …]
|
D | GrOvalOpFactory.cpp | 150 fragBuilder->codeAppend("float4 circleEdge;"); in onEmitCode() 153 fragBuilder->codeAppend("half3 clipPlane;"); in onEmitCode() 158 fragBuilder->codeAppend("half3 isectPlane;"); in onEmitCode() 164 fragBuilder->codeAppend("half3 unionPlane;"); in onEmitCode() 170 fragBuilder->codeAppend("float4 roundCapCenters;"); in onEmitCode() 195 fragBuilder->codeAppend("float d = length(circleEdge.xy);"); in onEmitCode() 196 fragBuilder->codeAppend("half distanceToOuterEdge = half(circleEdge.z * (1.0 - d));"); in onEmitCode() 197 fragBuilder->codeAppend("half edgeAlpha = saturate(distanceToOuterEdge);"); in onEmitCode() 199 fragBuilder->codeAppend( in onEmitCode() 201 fragBuilder->codeAppend("half innerAlpha = saturate(distanceToInnerEdge);"); in onEmitCode() [all …]
|
D | PathInnerTriangulateOp.cpp | 90 v->codeAppend( in makeProgramImpl() 129 v->codeAppend( in makeProgramImpl() 135 v->codeAppend( in makeProgramImpl() 160 v->codeAppend( in makeProgramImpl()
|
D | QuadPerEdgeAA.cpp | 728 args.fFragBuilder->codeAppend("float2 texCoord;"); in makeProgramImpl() 744 args.fFragBuilder->codeAppend("float4 subset;"); in makeProgramImpl() 748 args.fFragBuilder->codeAppend( in makeProgramImpl() 760 args.fFragBuilder->codeAppend(");"); in makeProgramImpl() 790 args.fFragBuilder->codeAppend("float4 geoSubset;"); in makeProgramImpl() 795 args.fFragBuilder->codeAppend( in makeProgramImpl() 803 args.fFragBuilder->codeAppend( in makeProgramImpl()
|
D | PathStencilCoverOp.cpp | 76 args.fVertBuilder->codeAppend( in makeProgramImpl() 79 args.fVertBuilder->codeAppend( in makeProgramImpl()
|
D | LatticeOp.cpp | 72 args.fFragBuilder->codeAppend("float2 textureCoords;"); in makeProgramImpl() 76 args.fFragBuilder->codeAppend("float4 textureDomain;"); in makeProgramImpl() 92 args.fFragBuilder->codeAppend(";"); in makeProgramImpl()
|
/external/skia/src/gpu/ganesh/tessellate/ |
D | GrStrokeTessellationShader.cpp | 268 args.fVertBuilder->codeAppend( in onEmitCode() 282 args.fVertBuilder->codeAppend( in onEmitCode() 302 args.fVertBuilder->codeAppend( in onEmitCode() 311 args.fVertBuilder->codeAppend( in onEmitCode() 325 args.fVertBuilder->codeAppend( in onEmitCode() 335 args.fVertBuilder->codeAppend( in onEmitCode() 350 args.fVertBuilder->codeAppend( in onEmitCode() 362 args.fVertBuilder->codeAppend( in onEmitCode()
|
D | GrPathTessellationShader.cpp | 52 v->codeAppend( in makeProgramImpl() 168 v->codeAppend( in makeProgramImpl() 173 v->codeAppend( in makeProgramImpl() 179 v->codeAppend( in makeProgramImpl()
|
/external/skia/src/gpu/ganesh/glsl/ |
D | GrGLSLProgramBuilder.cpp | 326 fFS.codeAppend("// Read color from copy of the destination\n"); in emitAndInstallDstTexture() 331 fFS.codeAppend("_dstTexCoord.y = 1.0 - _dstTexCoord.y;\n"); in emitAndInstallDstTexture() 348 fFS.codeAppend(";\n"); in emitAndInstallDstTexture() 359 fFS.codeAppend("// Read color from input attachment\n"); in emitAndInstallDstTexture() 365 fFS.codeAppend(";\n"); in emitAndInstallDstTexture() 387 fFS.codeAppend(openBrace.c_str()); in emitAndInstallXferProc() 408 fFS.codeAppend("}"); in emitAndInstallXferProc()
|
D | GrGLSLShaderBuilder.h | 112 void codeAppend(const char* str) { this->code().append(str); } in codeAppend() function 114 void codeAppend(const char* str, size_t length) { this->code().append(str, length); } in codeAppend() function 166 fBuilder->codeAppend("{"); in ShaderBlock() 170 fBuilder->codeAppend("}"); in ~ShaderBlock()
|
D | GrGLSLVertexGeoBuilder.cpp | 38 this->codeAppend("sk_PointSize = 1.0;"); in onFinalize()
|
D | GrGLSLShaderBuilder.cpp | 134 this->codeAppend(load.c_str()); in appendInputLoad() 250 this->codeAppend(xform.c_str()); in appendColorGamutXform()
|
/external/skia/src/shaders/ |
D | SkPerlinNoiseShader.cpp | 842 fragBuilder->codeAppend("abs("); in emitCode() 868 fragBuilder->codeAppend(")"); // end of "abs(" in emitCode() 870 fragBuilder->codeAppend(" * ratio;"); in emitCode() 872 fragBuilder->codeAppend("noiseVec *= half2(2.0);" in emitCode() 876 fragBuilder->codeAppend("stitchData *= half2(2.0);"); in emitCode() 878 fragBuilder->codeAppend("}"); // end of the for loop on octaves in emitCode()
|
/external/skia/src/gpu/ganesh/ |
D | GrGeometryProcessor.cpp | 298 vb->codeAppend("{\n"); in emitTransformCode() 318 vb->codeAppend(";\n"); in emitTransformCode() 319 vb->codeAppend("}\n"); in emitTransformCode()
|