Home
last modified time | relevance | path

Searched refs:fVertBuilder (Results 1 – 25 of 48) sorted by relevance

12

/external/skqp/src/gpu/effects/
DGrAtlasedShaderHelpers.h29 args.fVertBuilder->codeAppendf("int2 signedCoords = int2(%s.x, %s.y);", in append_index_uv_varyings()
31 … args.fVertBuilder->codeAppend("int texIdx = 2*(signedCoords.x & 0x1) + (signedCoords.y & 0x1);"); in append_index_uv_varyings()
32 …args.fVertBuilder->codeAppend("float2 unormTexCoords = float2(signedCoords.x/2, signedCoords.y/2);… in append_index_uv_varyings()
34 args.fVertBuilder->codeAppendf("float2 indexTexCoords = float2(%s.x, %s.y);", in append_index_uv_varyings()
36 args.fVertBuilder->codeAppend("float2 unormTexCoords = floor(0.5*indexTexCoords);"); in append_index_uv_varyings()
37 args.fVertBuilder->codeAppend("float2 diff = indexTexCoords - 2.0*unormTexCoords;"); in append_index_uv_varyings()
38 args.fVertBuilder->codeAppend("float texIdx = 2.0*diff.x + diff.y;"); in append_index_uv_varyings()
43 args.fVertBuilder->codeAppendf("%s = unormTexCoords * %s;", uv->vsOut(), atlasSizeInvName); in append_index_uv_varyings()
48 args.fVertBuilder->codeAppendf("%s = texIdx;", texIdx->vsOut()); in append_index_uv_varyings()
52 args.fVertBuilder->codeAppendf("%s = unormTexCoords;", st->vsOut()); in append_index_uv_varyings()
DGrShadowGeoProc.cpp22 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode()
DGrDistanceFieldGeoProc.cpp34 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode()
333 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode()
621 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode()
/external/skia/src/gpu/tessellate/
DGrStrokeTessellateShader.cpp92 auto* v = args.fVertBuilder; in onEmitCode()
1003 args.fVertBuilder->defineConstant("MAX_PARAMETRIC_SEGMENTS_LOG2", in onEmitCode()
1005 args.fVertBuilder->defineConstant("float", "PI", "3.141592653589793238"); in onEmitCode()
1009 args.fVertBuilder->insertFunction(kNumRadialSegmentsPerRadian); in onEmitCode()
1011 args.fVertBuilder->insertFunction(kAtan2Fn); in onEmitCode()
1012 args.fVertBuilder->insertFunction(kLengthPow2Fn); in onEmitCode()
1013 args.fVertBuilder->insertFunction(kMiterExtentFn); in onEmitCode()
1014 args.fVertBuilder->insertFunction(kUncheckedMixFn); in onEmitCode()
1015 args.fVertBuilder->insertFunction(kCosineBetweenVectorsFn); in onEmitCode()
1016 append_wangs_formula_fn(&args.fVertBuilder->functions(), shader.hasConics()); in onEmitCode()
[all …]
DGrStencilPathShader.cpp71 auto v = args.fVertBuilder; in onEmitCode()
370 args.fVertBuilder->defineConstantf("int", "kMaxVertexID", "%i", 1 << kMaxResolveLevel); in onEmitCode()
371 args.fVertBuilder->defineConstantf("float", "kInverseMaxVertexID", in onEmitCode()
373 args.fVertBuilder->insertFunction(kUnpackRationalCubicFn); in onEmitCode()
374 args.fVertBuilder->insertFunction(kEvalRationalCubicFn); in onEmitCode()
375 args.fVertBuilder->codeAppend(R"( in onEmitCode()
394 args.fVertBuilder->codeAppendf(R"( in onEmitCode()
DGrFillPathShader.cpp26 args.fVertBuilder->codeAppend("float2 localcoord, vertexpos;"); in onEmitCode()
27 shader.emitVertexCode(this, args.fVertBuilder, viewMatrix, args.fUniformHandler); in onEmitCode()
DGrDrawAtlasPathOp.cpp75 args.fVertBuilder->codeAppendf(R"( in onEmitCode()
90 args.fVertBuilder->codeAppendf(R"( in onEmitCode()
/external/skia/src/gpu/effects/
DGrAtlasedShaderHelpers.h32 args.fVertBuilder->codeAppendf(R"code( in append_index_uv_varyings()
37 args.fVertBuilder->codeAppendf(R"code( in append_index_uv_varyings()
45 args.fVertBuilder->codeAppendf(R"code( in append_index_uv_varyings()
50 args.fVertBuilder->codeAppendf(R"code( in append_index_uv_varyings()
61 args.fVertBuilder->codeAppendf( in append_index_uv_varyings()
70 args.fVertBuilder->codeAppendf("%s = %s(texIdx);", texIdx->vsOut(), cast); in append_index_uv_varyings()
75 args.fVertBuilder->codeAppendf("%s = unormTexCoords;", st->vsOut()); in append_index_uv_varyings()
DGrShadowGeoProc.cpp23 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode()
DGrBezierEffect.cpp66 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode()
277 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode()
DGrDistanceFieldGeoProc.cpp33 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode()
331 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode()
603 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in onEmitCode()
/external/skia/gm/
Dtessellation.cpp72 args.fVertBuilder->declareGlobal( in onEmitCode()
74 args.fVertBuilder->codeAppendf(R"( in onEmitCode()
182 args.fVertBuilder->declareGlobal( in onEmitCode()
184 args.fVertBuilder->codeAppendf("M_ = %s;", viewMatrix); in onEmitCode()
Dfwidth_squircle.cpp104 auto* v = args.fVertBuilder; in onEmitCode()
/external/skqp/src/gpu/glsl/
DGrGLSLPrimitiveProcessor.h79 : fVertBuilder(vertBuilder) in EmitArgs()
91 GrGLSLVertexBuilder* fVertBuilder; member
DGrGLSLGeometryProcessor.cpp20 GrGLSLVertexBuilder* vBuilder = args.fVertBuilder; in emitCode()
/external/skia/tools/gpu/
DTestOps.cpp67 args.fVertBuilder->codeAppendf("%s = %s;", colorVarying.vsOut(), gp.fInColor.name()); in onEmitCode()
71 WriteOutputPosition(args.fVertBuilder, gpArgs, gp.fInPosition.name()); in onEmitCode()
72 WriteLocalCoord(args.fVertBuilder, in onEmitCode()
/external/skia/src/gpu/glsl/
DGrGLSLGeometryProcessor.h80 : fVertBuilder(vertBuilder) in EmitArgs()
91 GrGLSLVertexBuilder* fVertBuilder; member
DGrGLSLGeometryProcessor.cpp25 this->collectTransforms(args.fVertBuilder, args.fVaryingHandler, args.fUniformHandler, in emitCode()
38 GrGLSLVertexBuilder* vBuilder = args.fVertBuilder; in emitCode()
/external/skqp/src/gpu/ops/
DGrQuadPerEdgeAA.cpp577 args.fVertBuilder->codeAppendf("float3 position = %s.xyz;", in createGLSLInstance()
580 args.fVertBuilder->codeAppendf("float2 position = %s.xy;", in createGLSLInstance()
597 this->emitTransforms(args.fVertBuilder, in createGLSLInstance()
625 args.fVertBuilder->codeAppendf("%s = %s;", in createGLSLInstance()
655 args.fVertBuilder->codeAppendf("%s = %s.w;", in createGLSLInstance()
658 args.fVertBuilder->codeAppendf("%s = %s.z;", in createGLSLInstance()
/external/skia/src/gpu/ops/
DGrQuadPerEdgeAA.cpp622 args.fVertBuilder->codeAppendf("float3 position = %s.xyz;", in createGLSLInstance()
625 args.fVertBuilder->codeAppendf("float2 position = %s.xy;", in createGLSLInstance()
668 args.fVertBuilder->codeAppendf("%s = %s;", in createGLSLInstance()
707 args.fVertBuilder->codeAppendf("%s = %s.w * %s.z;", in createGLSLInstance()
713 args.fVertBuilder->codeAppendf("%s = %s;", in createGLSLInstance()
/external/skqp/bench/
DVertexColorSpaceBench.cpp64 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in createGLSLInstance()
89 this->writeOutputPosition(args.fVertBuilder, gpArgs, gp.fInPosition.name()); in createGLSLInstance()
/external/skia/bench/
DVertexColorSpaceBench.cpp53 GrGLSLVertexBuilder* vertBuilder = args.fVertBuilder; in createGLSLInstance()
78 WriteOutputPosition(args.fVertBuilder, gpArgs, gp.fInPosition.name()); in createGLSLInstance()
/external/skqp/gm/
Dfwidth_squircle.cpp73 auto* v = args.fVertBuilder; in onEmitCode()
/external/skqp/tests/
DPrimitiveProcessorTest.cpp78 this->writeOutputPosition(args.fVertBuilder, gpArgs, in onPrepareDraws()
/external/skia/tests/
DPrimitiveProcessorTest.cpp82 WriteOutputPosition(args.fVertBuilder, gpArgs, gp.fAttributes[0].name()); in onCreateProgramInfo()

12