/external/skia/src/gpu/effects/ |
D | GrAtlasedShaderHelpers.h | 87 args.fFragBuilder->codeAppendf("%s = float4(1, 1, 1, 1);", colorName); in append_multitexture_lookup() 93 args.fFragBuilder->codeAppendf("if (%s == %d) { %s = ", texIdx.fsIn(), i, colorName); in append_multitexture_lookup() 94 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[i], coordName); in append_multitexture_lookup() 95 args.fFragBuilder->codeAppend("; } else "); in append_multitexture_lookup() 97 args.fFragBuilder->codeAppendf("{ %s = ", colorName); in append_multitexture_lookup() 98 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[numTextureSamplers - 1], coordName); in append_multitexture_lookup() 99 args.fFragBuilder->codeAppend("; }"); in append_multitexture_lookup()
|
D | GrSkSLFP.cpp | 79 return String(fArgs.fFragBuilder->getMangledFunctionName(name).c_str()); in emitCode() 84 fArgs.fFragBuilder->codeAppend(body); in emitCode() 86 fArgs.fFragBuilder->emitFunction(decl, body); in emitCode() 91 fArgs.fFragBuilder->definitionAppend(definition); in emitCode() 95 fArgs.fFragBuilder->definitionAppend(declaration); in emitCode() 132 GrShaderVar inputColorCopy(args.fFragBuilder->getMangledFunctionName("inColor"), in emitCode() 134 args.fFragBuilder->declareGlobal(inputColorCopy); in emitCode() 135 args.fFragBuilder->codeAppendf("%s = %s;\n", inputColorCopy.c_str(), args.fInputColor); in emitCode() 138 SkString coordsVarName = args.fFragBuilder->newTmpVarName("coords"); in emitCode() 142 args.fFragBuilder->codeAppendf("float2 %s = %s;\n", coords, args.fSampleCoord); in emitCode()
|
/external/skqp/src/gpu/effects/ |
D | GrAtlasedShaderHelpers.h | 63 args.fFragBuilder->codeAppendf("if (%s == %d) { %s = ", texIdx.fsIn(), i, colorName); in append_multitexture_lookup() 64 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[i], coordName, in append_multitexture_lookup() 66 args.fFragBuilder->codeAppend("; } else "); in append_multitexture_lookup() 68 args.fFragBuilder->codeAppendf("{ %s = ", colorName); in append_multitexture_lookup() 69 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[numTextureSamplers-1], coordName, in append_multitexture_lookup() 71 args.fFragBuilder->codeAppend("; }"); in append_multitexture_lookup()
|
D | GrLumaColorFilterEffect.cpp | 22 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
|
D | GrPremulInputFragmentProcessor.cpp | 22 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
|
/external/skia/src/gpu/ops/ |
D | GrQuadPerEdgeAA.cpp | 647 args.fFragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in createGLSLInstance() 654 args.fFragBuilder->codeAppendf("half4 %s = half4(1);", args.fOutputColor); in createGLSLInstance() 663 args.fFragBuilder->codeAppend("float2 texCoord;"); in createGLSLInstance() 670 args.fFragBuilder->codeAppendf("texCoord = %s.xy / %s.z;", in createGLSLInstance() 678 args.fFragBuilder->codeAppend("float4 subset;"); in createGLSLInstance() 681 args.fFragBuilder->codeAppend( in createGLSLInstance() 686 args.fFragBuilder->codeAppendf( in createGLSLInstance() 690 args.fFragBuilder->appendTextureLookupAndBlend( in createGLSLInstance() 693 args.fFragBuilder->codeAppend(");"); in createGLSLInstance() 710 args.fFragBuilder->codeAppendf("float coverage = %s * sk_FragCoord.w;", in createGLSLInstance() [all …]
|
D | GrLatticeOp.cpp | 69 args.fFragBuilder->codeAppend("float2 textureCoords;"); in createGLSLInstance() 72 args.fFragBuilder->codeAppend("float4 textureDomain;"); in createGLSLInstance() 75 args.fFragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in createGLSLInstance() 79 args.fFragBuilder->codeAppendf("%s = ", args.fOutputColor); in createGLSLInstance() 80 args.fFragBuilder->appendTextureLookupAndBlend( in createGLSLInstance() 86 args.fFragBuilder->codeAppend(";"); in createGLSLInstance() 87 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in createGLSLInstance()
|
/external/skia/gm/ |
D | fp_sample_chaining.cpp | 41 args.fFragBuilder->codeAppendf("return %s;\n", sample.c_str()); in onMakeProgramImpl() 70 args.fFragBuilder->codeAppendf("return %s;\n", sample.c_str()); in onMakeProgramImpl() 102 args.fFragBuilder->codeAppendf("float2 coord = %s + float2(0, 8);", in onMakeProgramImpl() 105 args.fFragBuilder->codeAppendf("return %s;\n", sample.c_str()); in onMakeProgramImpl() 129 auto fb = args.fFragBuilder; in onMakeProgramImpl()
|
D | clockwise.cpp | 115 args.fFragBuilder->codeAppendf( in onEmitCode() 119 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in onEmitCode() 122 args.fFragBuilder->codeAppendf("half4 %s = half4(min(half(sk_FragCoord.y), 1));", in onEmitCode()
|
/external/skia/src/gpu/tessellate/ |
D | GrDrawAtlasPathOp.cpp | 66 args.fFragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode() 96 args.fFragBuilder->codeAppendf("half4 %s = ", args.fOutputCoverage); in onEmitCode() 97 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[0], atlasCoord.fsIn()); in onEmitCode() 98 args.fFragBuilder->codeAppendf(".aaaa;"); in onEmitCode()
|
D | GrFillPathShader.cpp | 36 args.fFragBuilder->codeAppendf("half4 %s = %s;", args.fOutputColor, color); in onEmitCode() 37 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in onEmitCode()
|
D | GrStrokeTessellateShader.cpp | 393 args.fFragBuilder->codeAppendf("half4 %s = %s;", args.fOutputColor, colorUniformName); in onEmitCode() 397 args.fFragBuilder->declareGlobal(GrShaderVar(SkString("tesColor"), kHalf4_GrSLType, in onEmitCode() 400 args.fFragBuilder->codeAppendf("half4 %s = tesColor;", args.fOutputColor); in onEmitCode() 402 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in onEmitCode() 1260 args.fFragBuilder->codeAppendf("half4 %s = %s;", args.fOutputColor, colorUniformName); in onEmitCode() 1263 args.fFragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode() 1268 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in onEmitCode()
|
/external/skqp/src/gpu/glsl/ |
D | GrGLSLFragmentProcessor.cpp | 26 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitChild() 34 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in internalEmitChild()
|
D | GrGLSLPrimitiveProcessor.h | 81 , fFragBuilder(fragBuilder) in EmitArgs() 93 GrGLSLFPFragmentBuilder* fFragBuilder; member
|
D | GrGLSLFragmentProcessor.h | 109 : fFragBuilder(fragBuilder) in EmitArgs() 117 GrGLSLFPFragmentBuilder* fFragBuilder; member
|
/external/skqp/gm/ |
D | clockwise.cpp | 70 args.fFragBuilder->codeAppendf( in onEmitCode() 73 args.fFragBuilder->codeAppendf("%s = half4(1);", args.fOutputCoverage); in onEmitCode() 76 args.fFragBuilder->codeAppendf("%s = half4(min(sk_FragCoord.y, 1));", in onEmitCode()
|
/external/skqp/src/gpu/ops/ |
D | GrQuadPerEdgeAA.cpp | 612 args.fFragBuilder->codeAppendf("%s = half4(1);", args.fOutputColor); in createGLSLInstance() 620 args.fFragBuilder->codeAppend("float2 texCoord;"); in createGLSLInstance() 627 args.fFragBuilder->codeAppendf("texCoord = %s.xy / %s.z;", in createGLSLInstance() 635 args.fFragBuilder->codeAppend("float4 domain;"); in createGLSLInstance() 638 args.fFragBuilder->codeAppend( in createGLSLInstance() 643 args.fFragBuilder->codeAppendf("%s = ", args.fOutputColor); in createGLSLInstance() 644 args.fFragBuilder->appendTextureLookupAndModulate( in createGLSLInstance() 647 args.fFragBuilder->codeAppend(";"); in createGLSLInstance() 662 args.fFragBuilder->codeAppendf("%s = float4(%s);", in createGLSLInstance() 667 args.fFragBuilder->codeAppendf("%s = float4(1);", args.fOutputCoverage); in createGLSLInstance()
|
D | GrLatticeOp.cpp | 69 args.fFragBuilder->codeAppend("float2 textureCoords;"); in createGLSLInstance() 72 args.fFragBuilder->codeAppend("float4 textureDomain;"); in createGLSLInstance() 78 args.fFragBuilder->codeAppendf("%s = ", args.fOutputColor); in createGLSLInstance() 79 args.fFragBuilder->appendTextureLookupAndModulate( in createGLSLInstance() 85 args.fFragBuilder->codeAppend(";"); in createGLSLInstance() 86 args.fFragBuilder->codeAppendf("%s = half4(1);", args.fOutputCoverage); in createGLSLInstance()
|
/external/skia/src/gpu/glsl/ |
D | GrGLSLFragmentProcessor.h | 102 : fFragBuilder(fragBuilder) in EmitArgs() 109 GrGLSLFPFragmentBuilder* fFragBuilder; member
|
D | GrGLSLGeometryProcessor.h | 82 , fFragBuilder(fragBuilder) in EmitArgs() 93 GrGLSLFPFragmentBuilder* fFragBuilder; member
|
/external/skia/tests/sksl/fp/ |
D | GrSectionFields.cpp | 19 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
|
D | GrSectionClass.cpp | 19 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
|
D | GrUseExplicitReturn.cpp | 19 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
|
D | GrModuloOp.cpp | 19 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
|
D | GrSectionInitializers.cpp | 19 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
|