/third_party/skia/src/gpu/ops/ |
D | FillRRectOp.cpp | 597 v->codeAppend("float2 corner = corner_and_radius_outsets.xy;"); in onEmitCode() 598 v->codeAppend("float2 radius_outset = corner_and_radius_outsets.zw;"); in onEmitCode() 599 v->codeAppend("float2 aa_bloat_direction = aa_bloat_and_coverage.xy;"); in onEmitCode() 600 v->codeAppend("float is_linear_coverage = aa_bloat_and_coverage.w;"); in onEmitCode() 603 v->codeAppend("float2 pixellength = inversesqrt(" in onEmitCode() 605 v->codeAppend("float4 normalized_axis_dirs = skew * pixellength.xyxy;"); in onEmitCode() 606 v->codeAppend("float2 axiswidths = (abs(normalized_axis_dirs.xy) + " in onEmitCode() 608 v->codeAppend("float2 aa_bloatradius = axiswidths * pixellength * .5;"); in onEmitCode() 611 v->codeAppend("float4 radii_and_neighbors = radii_selector" in onEmitCode() 613 v->codeAppend("float2 radii = radii_and_neighbors.xy;"); in onEmitCode() [all …]
|
D | GrOvalOpFactory.cpp | 145 fragBuilder->codeAppend("float4 circleEdge;"); in onEmitCode() 148 fragBuilder->codeAppend("half3 clipPlane;"); in onEmitCode() 153 fragBuilder->codeAppend("half3 isectPlane;"); in onEmitCode() 159 fragBuilder->codeAppend("half3 unionPlane;"); in onEmitCode() 165 fragBuilder->codeAppend("float4 roundCapCenters;"); in onEmitCode() 190 fragBuilder->codeAppend("float d = length(circleEdge.xy);"); in onEmitCode() 191 fragBuilder->codeAppend("half distanceToOuterEdge = half(circleEdge.z * (1.0 - d));"); in onEmitCode() 192 fragBuilder->codeAppend("half edgeAlpha = saturate(distanceToOuterEdge);"); in onEmitCode() 194 fragBuilder->codeAppend( in onEmitCode() 196 fragBuilder->codeAppend("half innerAlpha = saturate(distanceToInnerEdge);"); in onEmitCode() [all …]
|
D | PathInnerTriangulateOp.cpp | 83 v->codeAppend(R"( in makeProgramImpl() 121 v->codeAppend(R"( in makeProgramImpl() 127 v->codeAppend(R"( in makeProgramImpl() 151 v->codeAppend(R"( in makeProgramImpl()
|
D | QuadPerEdgeAA.cpp | 727 args.fFragBuilder->codeAppend("float2 texCoord;"); in makeProgramImpl() 743 args.fFragBuilder->codeAppend("float4 subset;"); in makeProgramImpl() 747 args.fFragBuilder->codeAppend( in makeProgramImpl() 759 args.fFragBuilder->codeAppend(");"); in makeProgramImpl() 789 args.fFragBuilder->codeAppend("float4 geoSubset;"); in makeProgramImpl() 794 args.fFragBuilder->codeAppend( in makeProgramImpl() 802 args.fFragBuilder->codeAppend( in makeProgramImpl()
|
D | PathStencilCoverOp.cpp | 76 args.fVertBuilder->codeAppend(R"( in makeProgramImpl() 79 args.fVertBuilder->codeAppend(R"( in makeProgramImpl()
|
D | LatticeOp.cpp | 71 args.fFragBuilder->codeAppend("float2 textureCoords;"); in makeProgramImpl() 75 args.fFragBuilder->codeAppend("float4 textureDomain;"); in makeProgramImpl() 91 args.fFragBuilder->codeAppend(";"); in makeProgramImpl()
|
/third_party/skia/src/gpu/effects/ |
D | GrDistanceFieldGeoProc.cpp | 111 fragBuilder->codeAppend("half4 texColor;"); in onEmitCode() 115 fragBuilder->codeAppend("half distance = " in onEmitCode() 122 fragBuilder->codeAppend("half afwidth;"); in onEmitCode() 148 fragBuilder->codeAppend("afwidth = abs(" SK_DistanceFieldAAFactor "*st_grad_len);"); in onEmitCode() 153 fragBuilder->codeAppend("half2 dist_grad = half2(float2(dFdx(distance), " in onEmitCode() 157 fragBuilder->codeAppend("half dg_len2 = dot(dist_grad, dist_grad);"); in onEmitCode() 158 fragBuilder->codeAppend("if (dg_len2 < 0.0001) {"); in onEmitCode() 159 fragBuilder->codeAppend("dist_grad = half2(0.7071, 0.7071);"); in onEmitCode() 160 fragBuilder->codeAppend("} else {"); in onEmitCode() 161 fragBuilder->codeAppend("dist_grad = dist_grad*half(inversesqrt(dg_len2));"); in onEmitCode() [all …]
|
D | GrShadowGeoProc.cpp | 31 fragBuilder->codeAppend("half3 shadowParams;"); in onEmitCode() 43 fragBuilder->codeAppend("half d = length(shadowParams.xy);"); in onEmitCode() 44 fragBuilder->codeAppend("float2 uv = float2(shadowParams.z * (1.0 - d), 0.5);"); in onEmitCode() 45 fragBuilder->codeAppend("half factor = "); in onEmitCode() 47 fragBuilder->codeAppend(".a;"); in onEmitCode()
|
D | GrBicubicEffect.cpp | 45 fragBuilder->codeAppend("half2 f = half2(fract(coord));"); in emitCode() 46 fragBuilder->codeAppend("coord += 0.5 - f;"); in emitCode() 51 fragBuilder->codeAppend("half4 rowColors[4];"); in emitCode() 65 fragBuilder->codeAppend( in emitCode() 70 fragBuilder->codeAppend("half f = half(fract(coord));"); in emitCode() 71 fragBuilder->codeAppend("coord += 0.5 - f;"); in emitCode() 72 fragBuilder->codeAppend("half f2 = f * f;"); in emitCode() 74 fragBuilder->codeAppend("half4 c[4];"); in emitCode() 85 fragBuilder->codeAppend( in emitCode() 92 fragBuilder->codeAppend("bicubicColor = saturate(bicubicColor);"); in emitCode() [all …]
|
D | GrTextureEffect.cpp | 460 fb->codeAppend("{"); in emitCode() 466 fb->codeAppend("float m = mod(d, w2);"); in emitCode() 467 fb->codeAppend("float o = mix(m, w2 - m, step(w, m));"); in emitCode() 474 fb->codeAppend("float hw = w/2;"); in emitCode() 475 fb->codeAppend("float n = mod(d - hw, w2);"); in emitCode() 478 fb->codeAppend("}"); in emitCode() 481 fb->codeAppend("{"); in emitCode() 489 fb->codeAppend("}"); in emitCode() 519 fb->codeAppend("float2 extraRepeatCoord;"); in emitCode() 522 fb->codeAppend("half repeatCoordWeightX;"); in emitCode() [all …]
|
D | GrRRectEffect.cpp | 200 fragBuilder->codeAppend("float2 dxy = max(max(dxy0, dxy1), 0.0);"); in emitCode() 248 fragBuilder->codeAppend("float2 dxy = max(float2(dxy0.x, max(dxy0.y, dy1)), 0.0);"); in emitCode() 257 fragBuilder->codeAppend("float2 dxy = max(float2(max(dxy0.x, dx1), dxy0.y), 0.0);"); in emitCode() 266 fragBuilder->codeAppend("float2 dxy = max(float2(dxy1.x, max(dy0, dxy1.y)), 0.0);"); in emitCode() 275 fragBuilder->codeAppend("float2 dxy = max(float2(max(dx0, dxy1.x), dxy1.y), 0.0);"); in emitCode() 284 fragBuilder->codeAppend("alpha = 1.0 - alpha;"); in emitCode() 552 fragBuilder->codeAppend("float2 dxy = max(max(dxy0, dxy1), 0.0);"); in emitCode() 571 fragBuilder->codeAppend("float2 dxy = max(max(dxy0, dxy1), 0.0);"); in emitCode() 584 fragBuilder->codeAppend("half implicit = half(dot(Z, dxy) - 1.0);"); in emitCode() 586 fragBuilder->codeAppend("half grad_dot = half(4.0 * dot(Z, Z));"); in emitCode() [all …]
|
D | GrMatrixConvolutionEffect.cpp | 173 fragBuilder->codeAppend("half k;"); in emitKernelBlock() 174 fragBuilder->codeAppend("half2 sourceOffset;"); in emitKernelBlock() 191 fragBuilder->codeAppend("c = unpremul(c);"); in emitKernelBlock() 192 fragBuilder->codeAppend("c.rgb = saturate(c.rgb);"); in emitKernelBlock() 194 fragBuilder->codeAppend("sum += c * k;"); in emitKernelBlock() 224 fragBuilder->codeAppend("half4 sum = half4(0);"); in emitCode()
|
D | GrAtlasedShaderHelpers.h | 112 args.fFragBuilder->codeAppend("; } else "); in append_multitexture_lookup() 116 args.fFragBuilder->codeAppend("; }"); in append_multitexture_lookup()
|
D | GrModulateAtlasCoverageEffect.cpp | 43 f->codeAppend("half coverage = 0;"); in onMakeProgramImpl()
|
/third_party/skia/src/gpu/tessellate/shaders/ |
D | GrStrokeTessellationShader_InstancedImpl.cpp | 67 args.fVertBuilder->codeAppend(R"( in onEmitCode() 98 args.fVertBuilder->codeAppend(R"( in onEmitCode() 110 args.fVertBuilder->codeAppend(R"( in onEmitCode() 118 args.fVertBuilder->codeAppend(R"( in onEmitCode() 144 args.fVertBuilder->codeAppend(R"( in onEmitCode() 153 args.fVertBuilder->codeAppend(R"( in onEmitCode() 166 args.fVertBuilder->codeAppend(R"( in onEmitCode() 175 args.fVertBuilder->codeAppend(R"( in onEmitCode() 188 args.fVertBuilder->codeAppend(R"( in onEmitCode()
|
D | GrStrokeTessellationShader_HardwareImpl.cpp | 105 v->codeAppend(R"( in onEmitCode() 113 v->codeAppend(R"( in onEmitCode() 122 v->codeAppend(R"( in onEmitCode() 298 v->codeAppend(R"( in onEmitCode() 302 v->codeAppend(R"( in onEmitCode()
|
D | GrPathTessellationShader_MiddleOut.cpp | 127 v->codeAppend(R"( in makeProgramImpl() 132 v->codeAppend(R"( in makeProgramImpl() 138 v->codeAppend(R"( in makeProgramImpl()
|
D | GrPathTessellationShader_Hardware.cpp | 66 v->codeAppend(R"( in makeProgramImpl() 210 v->codeAppend(R"( in makeProgramImpl()
|
/third_party/skia/src/gpu/glsl/ |
D | GrGLSLShaderBuilder.h | 115 void codeAppend(const char* str) { this->code().append(str); } in codeAppend() function 117 void codeAppend(const char* str, size_t length) { this->code().append(str, length); } in codeAppend() function 119 void codeAppend(std::unique_ptr<SkSL::Statement> stmt); 171 fBuilder->codeAppend("{"); in ShaderBlock() 175 fBuilder->codeAppend("}"); in ~ShaderBlock()
|
D | GrGLSLProgramBuilder.cpp | 315 fFS.codeAppend("// Read color from copy of the destination\n"); in emitAndInstallDstTexture() 319 fFS.codeAppend("_dstTexCoord.y = 1.0 - _dstTexCoord.y;\n"); in emitAndInstallDstTexture() 326 fFS.codeAppend(";\n"); in emitAndInstallDstTexture() 337 fFS.codeAppend("// Read color from input attachment\n"); in emitAndInstallDstTexture() 343 fFS.codeAppend(";\n"); in emitAndInstallDstTexture() 369 fFS.codeAppend(openBrace.c_str()); in emitAndInstallXferProc() 390 fFS.codeAppend("}"); in emitAndInstallXferProc()
|
D | GrGLSLShaderBuilder.cpp | 92 void GrGLSLShaderBuilder::codeAppend(std::unique_ptr<SkSL::Statement> stmt) { in codeAppend() function in GrGLSLShaderBuilder 95 this->codeAppend(stmt->description().c_str()); in codeAppend() 137 this->codeAppend("("); in appendTextureLookupAndBlend() 154 this->codeAppend(load.c_str()); in appendInputLoad() 277 this->codeAppend(xform.c_str()); in appendColorGamutXform()
|
D | GrGLSLVertexGeoBuilder.cpp | 38 this->codeAppend("sk_PointSize = 1.0;"); in onFinalize()
|
/third_party/skia/src/shaders/ |
D | SkPerlinNoiseShader.cpp | 831 fragBuilder->codeAppend("abs("); in emitCode() 857 fragBuilder->codeAppend(")"); // end of "abs(" in emitCode() 859 fragBuilder->codeAppend(" * ratio;"); in emitCode() 861 fragBuilder->codeAppend(R"(noiseVec *= half2(2.0); in emitCode() 865 fragBuilder->codeAppend("stitchData *= half2(2.0);"); in emitCode() 867 fragBuilder->codeAppend("}"); // end of the for loop on octaves in emitCode()
|
/third_party/skia/src/gpu/ |
D | GrGeometryProcessor.cpp | 282 vb->codeAppend("{\n"); in emitTransformCode() 302 vb->codeAppend(";\n"); in emitTransformCode() 303 vb->codeAppend("}\n"); in emitTransformCode()
|
/third_party/skia/src/sksl/dsl/ |
D | DSLStatement.cpp | 66 ThreadContext::CurrentEmitArgs()->fFragBuilder->codeAppend(this->release()); in ~DSLStatement()
|