Home
last modified time | relevance | path

Searched refs:vertBuilder (Results 1 – 23 of 23) sorted by relevance

/external/skia/src/gpu/glsl/
DGrGLSLGeometryProcessor.cpp291 static void write_passthrough_vertex_position(GrGLSLVertexBuilder* vertBuilder, in write_passthrough_vertex_position() argument
295 SkString outName = vertBuilder->newTmpVarName(inPos.getName().c_str()); in write_passthrough_vertex_position()
297 vertBuilder->codeAppendf("float%d %s = %s;", in write_passthrough_vertex_position()
303 static void write_vertex_position(GrGLSLVertexBuilder* vertBuilder, in write_vertex_position() argument
312 SkString outName = vertBuilder->newTmpVarName(inPos.getName().c_str()); in write_vertex_position()
315 write_passthrough_vertex_position(vertBuilder, inPos, outPos); in write_vertex_position()
332 vertBuilder->codeAppendf("float3 %s = %s.xz1 * %s + %s.yw0;\n", in write_vertex_position()
338 vertBuilder->codeAppendf("float3 %s = %s * %s;\n", in write_vertex_position()
349 vertBuilder->codeAppendf("float3 %s = (%s * %s.xy1);", in write_vertex_position()
357 vertBuilder->codeAppendf("float2 %s = %s.xz * %s + %s.yw;\n", in write_vertex_position()
[all …]
DGrGLSLGeometryProcessor.h69 EmitArgs(GrGLSLVertexBuilder* vertBuilder, in EmitArgs()
80 : fVertBuilder(vertBuilder) in EmitArgs()
/external/skqp/src/gpu/
DGrDefaultGeoProcFactory.cpp79 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
98 vertBuilder->codeAppendf("half4 color = %s;", gp.fInColor.name()); in onEmitCode()
105 vertBuilder->codeAppendf("half4 color = %s;", colorUniformName); in onEmitCode()
110 vertBuilder->codeAppend("color = color.bgra;"); in onEmitCode()
116 vertBuilder->appendColorGamutXform(&xformedColor, "color", in onEmitCode()
118 vertBuilder->codeAppendf("color = %s;", xformedColor.c_str()); in onEmitCode()
121 vertBuilder->codeAppend("color = half4(color.rgb * color.a, color.a);"); in onEmitCode()
126 vertBuilder->codeAppendf("color = color * %s;", gp.fInCoverage.name()); in onEmitCode()
128 vertBuilder->codeAppendf("%s = color;\n", varying.vsOut()); in onEmitCode()
152 this->emitApplyBoneFunction(vertBuilder, in onEmitCode()
[all …]
/external/skqp/src/gpu/glsl/
DGrGLSLGeometryProcessor.cpp115 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()
DGrGLSLPrimitiveProcessor.h67 EmitArgs(GrGLSLVertexBuilder* vertBuilder, in EmitArgs()
79 : fVertBuilder(vertBuilder) in EmitArgs()
/external/skqp/src/gpu/effects/
DGrShadowGeoProc.cpp22 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
36 this->writeOutputPosition(vertBuilder, gpArgs, rsgp.inPosition().name()); in onEmitCode()
39 this->emitTransforms(vertBuilder, in onEmitCode()
DGrBezierEffect.cpp70 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()
DGrDistanceFieldGeoProc.cpp34 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
62 this->emitTransforms(vertBuilder, in onEmitCode()
333 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()
621 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
644 this->emitTransforms(vertBuilder, in onEmitCode()
662 vertBuilder->codeAppendf("%s = -%s.x/3.0;", delta.vsOut(), atlasSizeInvName); in onEmitCode()
[all …]
DGrBitmapTextGeoProc.cpp28 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
61 this->emitTransforms(vertBuilder, in onEmitCode()
/external/skia/src/gpu/
DGrDefaultGeoProcFactory.cpp68 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
87 vertBuilder->codeAppendf("half4 color = %s;", gp.fInColor.name()); in onEmitCode()
95 vertBuilder->codeAppendf("half4 color = %s;", colorUniformName); in onEmitCode()
100 vertBuilder->codeAppendf("color = color * %s;", gp.fInCoverage.name()); in onEmitCode()
102 vertBuilder->codeAppendf("%s = color;\n", varying.vsOut()); in onEmitCode()
110 WriteOutputPosition(vertBuilder, in onEmitCode()
123 WriteLocalCoord(vertBuilder, in onEmitCode()
/external/skia/src/gpu/effects/
DGrBezierEffect.cpp66 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
76 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), gp.inConicCoeffs().name()); in onEmitCode()
84 WriteOutputPosition(vertBuilder, in onEmitCode()
92 WriteLocalCoord(vertBuilder, in onEmitCode()
277 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
287 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), gp.inHairQuadEdge().name()); in onEmitCode()
295 WriteOutputPosition(vertBuilder, in onEmitCode()
303 WriteLocalCoord(vertBuilder, in onEmitCode()
DGrDistanceFieldGeoProc.cpp33 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
61 WriteLocalCoord(vertBuilder, in onEmitCode()
331 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
356 WriteOutputPosition(vertBuilder, in onEmitCode()
366 WriteOutputPosition(vertBuilder, gpArgs, dfPathEffect.inPosition().name()); in onEmitCode()
367 WriteLocalCoord(vertBuilder, in onEmitCode()
603 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
625 WriteLocalCoord(vertBuilder, in onEmitCode()
642 vertBuilder->codeAppendf("%s = -%s.x/3.0;", delta.vsOut(), atlasDimensionsInvName); in onEmitCode()
644 vertBuilder->codeAppendf("%s = %s.x/3.0;", delta.vsOut(), atlasDimensionsInvName); in onEmitCode()
DGrShadowGeoProc.cpp23 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
37 WriteOutputPosition(vertBuilder, gpArgs, rsgp.inPosition().name()); in onEmitCode()
DGrBitmapTextGeoProc.cpp31 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
58 WriteLocalCoord(vertBuilder, in onEmitCode()
/external/skqp/bench/
DVertexColorSpaceBench.cpp64 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()
/external/skia/bench/
DVertexColorSpaceBench.cpp53 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in createGLSLInstance() local
63 vertBuilder->codeAppendf("half4 color = %s;", gp.fInColor.name()); in createGLSLInstance()
69 vertBuilder->appendColorGamutXform(&xformedColor, "color", &fColorSpaceHelper); in createGLSLInstance()
70 vertBuilder->codeAppendf("color = %s;", xformedColor.c_str()); in createGLSLInstance()
71 vertBuilder->codeAppend("color = half4(color.rgb * color.a, color.a);"); in createGLSLInstance()
74 vertBuilder->codeAppendf("%s = color;", varying.vsOut()); in createGLSLInstance()
/external/skia/src/gpu/ops/
DGrDrawVerticesOp.cpp71 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
87 vertBuilder->codeAppendf("half4 color = %s;", gp.colorAttr().name()); in onEmitCode()
91 vertBuilder->codeAppend("color = color.bgra;"); in onEmitCode()
94 vertBuilder->appendColorGamutXform(&xformedColor, "color", &fColorSpaceHelper); in onEmitCode()
95 vertBuilder->codeAppendf("color = %s;", xformedColor.c_str()); in onEmitCode()
97 vertBuilder->codeAppend("color = half4(color.rgb * color.a, color.a);"); in onEmitCode()
100 vertBuilder->codeAppendf("%s = color;\n", varying.vsOut()); in onEmitCode()
108 WriteOutputPosition(vertBuilder, in onEmitCode()
DGrDashOp.cpp896 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
906 vertBuilder->codeAppendf("%s = %s;", dashParams.vsOut(), dce.fInDashParams.name()); in onEmitCode()
911 vertBuilder->codeAppendf("%s = %s;", circleParams.vsOut(), dce.fInCircleParams.name()); in onEmitCode()
919 WriteOutputPosition(vertBuilder, gpArgs, dce.fInPosition.name()); in onEmitCode()
921 WriteLocalCoord(vertBuilder, in onEmitCode()
1110 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
1120 vertBuilder->codeAppendf("%s = %s;", inDashParams.vsOut(), de.fInDashParams.name()); in onEmitCode()
1126 vertBuilder->codeAppendf("%s = %s;", inRectParams.vsOut(), de.fInRect.name()); in onEmitCode()
1134 WriteOutputPosition(vertBuilder, gpArgs, de.fInPosition.name()); in onEmitCode()
1136 WriteLocalCoord(vertBuilder, in onEmitCode()
DGrOvalOpFactory.cpp120 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
150 vertBuilder->codeAppendf("%s = (1.0 - %s.w) / 2.0;", capRadius.vsOut(), in onEmitCode()
159 WriteOutputPosition(vertBuilder, gpArgs, cgp.fInPosition.name()); in onEmitCode()
160 WriteLocalCoord(vertBuilder, in onEmitCode()
313 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
333 vertBuilder->codeAppendf("float4 dashParams = %s;", bcscgp.fInDashParams.name()); in onEmitCode()
350 vertBuilder->codeAppend(R"( in onEmitCode()
388 vertBuilder->codeAppendf("%s = half4(wrapDashes);", wrapDashes.vsOut()); in onEmitCode()
389 vertBuilder->codeAppendf("%s = lastIntervalLength;", lastIntervalLength.vsOut()); in onEmitCode()
400 WriteOutputPosition(vertBuilder, gpArgs, bcscgp.fInPosition.name()); in onEmitCode()
[all …]
DGrAAConvexPathRenderer.cpp570 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
582 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), qe.fInQuadEdge.name()); in onEmitCode()
589 WriteOutputPosition(vertBuilder, gpArgs, qe.fInPosition.name()); in onEmitCode()
591 WriteLocalCoord(vertBuilder, in onEmitCode()
/external/skqp/src/gpu/ops/
DGrDashOp.cpp830 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
840 vertBuilder->codeAppendf("%s = %s;", dashParams.vsOut(), dce.fInDashParams.name()); in onEmitCode()
845 vertBuilder->codeAppendf("%s = %s;", circleParams.vsOut(), dce.fInCircleParams.name()); in onEmitCode()
852 this->writeOutputPosition(vertBuilder, gpArgs, dce.fInPosition.name()); in onEmitCode()
855 this->emitTransforms(vertBuilder, in onEmitCode()
1028 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
1038 vertBuilder->codeAppendf("%s = %s;", inDashParams.vsOut(), de.fInDashParams.name()); in onEmitCode()
1044 vertBuilder->codeAppendf("%s = %s;", inRectParams.vsOut(), de.fInRect.name()); in onEmitCode()
1051 this->writeOutputPosition(vertBuilder, gpArgs, de.fInPosition.name()); in onEmitCode()
1054 this->emitTransforms(vertBuilder, in onEmitCode()
DGrOvalOpFactory.cpp111 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
141 vertBuilder->codeAppendf("%s = (1.0 - %s.w) / 2.0;", capRadius.vsOut(), in onEmitCode()
149 this->writeOutputPosition(vertBuilder, gpArgs, cgp.fInPosition.name()); in onEmitCode()
152 this->emitTransforms(vertBuilder, in onEmitCode()
289 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
309 vertBuilder->codeAppendf("float4 dashParams = %s;", bcscgp.fInDashParams.name()); in onEmitCode()
326 vertBuilder->codeAppend(R"( in onEmitCode()
364 vertBuilder->codeAppendf("%s = wrapDashes;", wrapDashes.vsOut()); in onEmitCode()
365 vertBuilder->codeAppendf("%s = lastIntervalLength;", lastIntervalLength.vsOut()); in onEmitCode()
375 this->writeOutputPosition(vertBuilder, gpArgs, bcscgp.fInPosition.name()); in onEmitCode()
[all …]
DGrAAConvexPathRenderer.cpp544 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode() local
553 vertBuilder->codeAppendf("%s = %s;", v.vsOut(), qe.fInQuadEdge.name()); in onEmitCode()
561 this->writeOutputPosition(vertBuilder, gpArgs, qe.fInPosition.name()); in onEmitCode()
564 this->emitTransforms(vertBuilder, in onEmitCode()