/third_party/skia/src/gpu/ |
D | GrGeometryProcessor.cpp | 349 static void write_passthrough_vertex_position(GrGLSLVertexBuilder* vertBuilder, in write_passthrough_vertex_position() argument 353 SkString outName = vertBuilder->newTmpVarName(inPos.getName().c_str()); in write_passthrough_vertex_position() 355 vertBuilder->codeAppendf("float%d %s = %s;", in write_passthrough_vertex_position() 361 static void write_vertex_position(GrGLSLVertexBuilder* vertBuilder, in write_vertex_position() argument 370 SkString outName = vertBuilder->newTmpVarName(inPos.getName().c_str()); in write_vertex_position() 373 write_passthrough_vertex_position(vertBuilder, inPos, outPos); in write_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() 415 vertBuilder->codeAppendf("float2 %s = %s.xz * %s + %s.yw;\n", in write_vertex_position() [all …]
|
D | GrDefaultGeoProcFactory.cpp | 97 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 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() 141 WriteOutputPosition(vertBuilder, in onEmitCode() 154 WriteLocalCoord(vertBuilder, in onEmitCode()
|
D | GrGeometryProcessor.h | 292 EmitArgs(GrGLSLVertexBuilder* vertBuilder, in EmitArgs() 301 : fVertBuilder(vertBuilder) in EmitArgs()
|
/third_party/flutter/skia/src/gpu/ |
D | GrDefaultGeoProcFactory.cpp | 69 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 88 vertBuilder->codeAppendf("half4 color = %s;", gp.fInColor.name()); in onEmitCode() 95 vertBuilder->codeAppendf("half4 color = %s;", colorUniformName); in onEmitCode() 100 vertBuilder->codeAppend("color = color.bgra;"); in onEmitCode() 106 vertBuilder->appendColorGamutXform(&xformedColor, "color", in onEmitCode() 108 vertBuilder->codeAppendf("color = %s;", xformedColor.c_str()); in onEmitCode() 111 vertBuilder->codeAppend("color = half4(color.rgb * color.a, color.a);"); in onEmitCode() 116 vertBuilder->codeAppendf("color = color * %s;", gp.fInCoverage.name()); in onEmitCode() 118 vertBuilder->codeAppendf("%s = color;\n", varying.vsOut()); in onEmitCode() 126 this->writeOutputPosition(vertBuilder, in onEmitCode() [all …]
|
/third_party/flutter/skia/src/gpu/glsl/ |
D | GrGLSLGeometryProcessor.cpp | 115 void GrGLSLGeometryProcessor::writeOutputPosition(GrGLSLVertexBuilder* vertBuilder, in writeOutputPosition() argument 119 vertBuilder->codeAppendf("float2 %s = %s;", gpArgs->fPositionVar.c_str(), posName); in writeOutputPosition() 122 void GrGLSLGeometryProcessor::writeOutputPosition(GrGLSLVertexBuilder* vertBuilder, in writeOutputPosition() argument 130 vertBuilder->codeAppendf("float2 %s = %s;", gpArgs->fPositionVar.c_str(), posName); in writeOutputPosition() 139 vertBuilder->codeAppendf("float2 %s = (%s * float3(%s, 1)).xy;", in writeOutputPosition() 143 vertBuilder->codeAppendf("float3 %s = %s * float3(%s, 1);", in writeOutputPosition()
|
D | GrGLSLPrimitiveProcessor.h | 67 EmitArgs(GrGLSLVertexBuilder* vertBuilder, in EmitArgs() 79 : fVertBuilder(vertBuilder) in EmitArgs()
|
/third_party/flutter/skia/src/gpu/effects/ |
D | GrShadowGeoProc.cpp | 22 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 36 this->writeOutputPosition(vertBuilder, gpArgs, rsgp.inPosition().name()); in onEmitCode() 39 this->emitTransforms(vertBuilder, in onEmitCode()
|
D | GrBezierEffect.cpp | 70 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 80 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), gp.inConicCoeffs().name()); in onEmitCode() 87 this->writeOutputPosition(vertBuilder, in onEmitCode() 95 this->emitTransforms(vertBuilder, in onEmitCode() 321 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 331 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), gp.inHairQuadEdge().name()); in onEmitCode() 338 this->writeOutputPosition(vertBuilder, in onEmitCode() 346 this->emitTransforms(vertBuilder, in onEmitCode()
|
D | GrDistanceFieldGeoProc.cpp | 34 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 61 this->emitTransforms(vertBuilder, in onEmitCode() 334 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 359 this->writeOutputPosition(vertBuilder, in onEmitCode() 367 this->emitTransforms(vertBuilder, in onEmitCode() 374 this->writeOutputPosition(vertBuilder, gpArgs, dfPathEffect.inPosition().name()); in onEmitCode() 377 this->emitTransforms(vertBuilder, in onEmitCode() 623 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 645 this->emitTransforms(vertBuilder, in onEmitCode() 663 vertBuilder->codeAppendf("%s = -%s.x/3.0;", delta.vsOut(), atlasSizeInvName); in onEmitCode() [all …]
|
D | GrBitmapTextGeoProc.cpp | 28 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 60 this->emitTransforms(vertBuilder, in onEmitCode()
|
/third_party/skia/src/gpu/effects/ |
D | GrBezierEffect.cpp | 52 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 62 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), gp.inConicCoeffs().name()); in onEmitCode() 70 WriteOutputPosition(vertBuilder, in onEmitCode() 78 WriteLocalCoord(vertBuilder, in onEmitCode() 240 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 250 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), gp.inHairQuadEdge().name()); in onEmitCode() 258 WriteOutputPosition(vertBuilder, in onEmitCode() 266 WriteLocalCoord(vertBuilder, in onEmitCode()
|
D | GrDistanceFieldGeoProc.cpp | 56 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 85 WriteLocalCoord(vertBuilder, in onEmitCode() 344 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 374 WriteOutputPosition(vertBuilder, in onEmitCode() 384 WriteOutputPosition(vertBuilder, gpArgs, dfPathEffect.fInPosition.name()); in onEmitCode() 385 WriteLocalCoord(vertBuilder, in onEmitCode() 610 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 633 WriteLocalCoord(vertBuilder, in onEmitCode() 654 vertBuilder->codeAppendf("%s = -%s.x/3.0;", delta.vsOut(), atlasDimensionsInvName); in onEmitCode() 656 vertBuilder->codeAppendf("%s = %s.x/3.0;", delta.vsOut(), atlasDimensionsInvName); in onEmitCode()
|
D | GrShadowGeoProc.cpp | 25 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 40 WriteOutputPosition(vertBuilder, gpArgs, rsgp.inPosition().name()); in onEmitCode()
|
D | GrBitmapTextGeoProc.cpp | 48 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 80 WriteLocalCoord(vertBuilder, in onEmitCode()
|
/third_party/flutter/skia/bench/ |
D | VertexColorSpaceBench.cpp | 64 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in createGLSLInstance() local 74 vertBuilder->codeAppendf("half4 color = %s;", gp.fInColor.name()); in createGLSLInstance() 80 vertBuilder->appendColorGamutXform(&xformedColor, "color", &fColorSpaceHelper); in createGLSLInstance() 81 vertBuilder->codeAppendf("color = %s;", xformedColor.c_str()); in createGLSLInstance() 82 vertBuilder->codeAppend("color = half4(color.rgb * color.a, color.a);"); in createGLSLInstance() 85 vertBuilder->codeAppendf("%s = color;", varying.vsOut()); in createGLSLInstance()
|
/third_party/skia/bench/ |
D | VertexColorSpaceBench.cpp | 60 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in makeProgramImpl() local 70 vertBuilder->codeAppendf("half4 color = %s;", gp.fInColor.name()); in makeProgramImpl() 76 vertBuilder->appendColorGamutXform(&xformedColor, "color", &fColorSpaceHelper); in makeProgramImpl() 77 vertBuilder->codeAppendf("color = %s;", xformedColor.c_str()); in makeProgramImpl() 78 vertBuilder->codeAppend("color = half4(color.rgb * color.a, color.a);"); in makeProgramImpl() 81 vertBuilder->codeAppendf("%s = color;", varying.vsOut()); in makeProgramImpl()
|
/third_party/skia/src/gpu/ops/ |
D | DrawVerticesOp.cpp | 95 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 111 vertBuilder->codeAppendf("half4 color = %s;", gp.colorAttr().name()); in onEmitCode() 115 vertBuilder->codeAppend("color = color.bgra;"); in onEmitCode() 118 vertBuilder->appendColorGamutXform(&xformedColor, "color", &fColorSpaceHelper); in onEmitCode() 119 vertBuilder->codeAppendf("color = %s;", xformedColor.c_str()); in onEmitCode() 121 vertBuilder->codeAppend("color = half4(color.rgb * color.a, color.a);"); in onEmitCode() 124 vertBuilder->codeAppendf("%s = color;\n", varying.vsOut()); in onEmitCode() 132 WriteOutputPosition(vertBuilder, in onEmitCode()
|
D | DashOp.cpp | 769 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 779 vertBuilder->codeAppendf("%s = %s;", dashParams.vsOut(), dce.fInDashParams.name()); in onEmitCode() 784 vertBuilder->codeAppendf("%s = %s;", circleParams.vsOut(), dce.fInCircleParams.name()); in onEmitCode() 792 WriteOutputPosition(vertBuilder, gpArgs, dce.fInPosition.name()); in onEmitCode() 794 WriteLocalCoord(vertBuilder, in onEmitCode() 958 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 968 vertBuilder->codeAppendf("%s = %s;", inDashParams.vsOut(), de.fInDashParams.name()); in onEmitCode() 974 vertBuilder->codeAppendf("%s = %s;", inRectParams.vsOut(), de.fInRect.name()); in onEmitCode() 982 WriteOutputPosition(vertBuilder, gpArgs, de.fInPosition.name()); in onEmitCode() 984 WriteLocalCoord(vertBuilder, in onEmitCode()
|
D | GrOvalOpFactory.cpp | 138 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 172 vertBuilder->codeAppendf("%s = (1.0 - %s.w) / 2.0;", capRadius.vsOut(), in onEmitCode() 181 WriteOutputPosition(vertBuilder, gpArgs, cgp.fInPosition.name()); in onEmitCode() 182 WriteLocalCoord(vertBuilder, in onEmitCode() 319 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 341 vertBuilder->codeAppendf("float4 dashParams = %s;", bcscgp.fInDashParams.name()); in onEmitCode() 358 vertBuilder->codeAppend(R"( in onEmitCode() 396 vertBuilder->codeAppendf("%s = half4(wrapDashes);", wrapDashes.vsOut()); in onEmitCode() 397 vertBuilder->codeAppendf("%s = lastIntervalLength;", lastIntervalLength.vsOut()); in onEmitCode() 409 WriteOutputPosition(vertBuilder, gpArgs, bcscgp.fInPosition.name()); in onEmitCode() [all …]
|
D | AAConvexPathRenderer.cpp | 609 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in makeProgramImpl() local 621 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), qe.fInQuadEdge.name()); in makeProgramImpl() 628 WriteOutputPosition(vertBuilder, gpArgs, qe.fInPosition.name()); in makeProgramImpl() 630 WriteLocalCoord(vertBuilder, in makeProgramImpl()
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrDashOp.cpp | 837 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 847 vertBuilder->codeAppendf("%s = %s;", dashParams.vsOut(), dce.fInDashParams.name()); in onEmitCode() 852 vertBuilder->codeAppendf("%s = %s;", circleParams.vsOut(), dce.fInCircleParams.name()); in onEmitCode() 859 this->writeOutputPosition(vertBuilder, gpArgs, dce.fInPosition.name()); in onEmitCode() 862 this->emitTransforms(vertBuilder, in onEmitCode() 1036 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 1046 vertBuilder->codeAppendf("%s = %s;", inDashParams.vsOut(), de.fInDashParams.name()); in onEmitCode() 1052 vertBuilder->codeAppendf("%s = %s;", inRectParams.vsOut(), de.fInRect.name()); in onEmitCode() 1059 this->writeOutputPosition(vertBuilder, gpArgs, de.fInPosition.name()); in onEmitCode() 1062 this->emitTransforms(vertBuilder, in onEmitCode()
|
D | GrOvalOpFactory.cpp | 112 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 142 vertBuilder->codeAppendf("%s = (1.0 - %s.w) / 2.0;", capRadius.vsOut(), in onEmitCode() 150 this->writeOutputPosition(vertBuilder, gpArgs, cgp.fInPosition.name()); in onEmitCode() 153 this->emitTransforms(vertBuilder, in onEmitCode() 290 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 310 vertBuilder->codeAppendf("float4 dashParams = %s;", bcscgp.fInDashParams.name()); in onEmitCode() 327 vertBuilder->codeAppend(R"( in onEmitCode() 365 vertBuilder->codeAppendf("%s = half4(wrapDashes);", wrapDashes.vsOut()); in onEmitCode() 366 vertBuilder->codeAppendf("%s = lastIntervalLength;", lastIntervalLength.vsOut()); in onEmitCode() 376 this->writeOutputPosition(vertBuilder, gpArgs, bcscgp.fInPosition.name()); in onEmitCode() [all …]
|
D | GrAAConvexPathRenderer.cpp | 551 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local 560 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), qe.fInQuadEdge.name()); in onEmitCode() 568 this->writeOutputPosition(vertBuilder, gpArgs, qe.fInPosition.name()); in onEmitCode() 571 this->emitTransforms(vertBuilder, in onEmitCode()
|