Home
last modified time | relevance | path

Searched refs:fFragBuilder (Results 1 – 25 of 194) sorted by relevance

12345678

/external/skia/src/gpu/effects/
DGrAtlasedShaderHelpers.h87 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()
DGrSkSLFP.cpp79 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/
DGrAtlasedShaderHelpers.h63 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()
DGrLumaColorFilterEffect.cpp22 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
DGrPremulInputFragmentProcessor.cpp22 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
/external/skia/src/gpu/ops/
DGrQuadPerEdgeAA.cpp647 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 …]
DGrLatticeOp.cpp69 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/
Dfp_sample_chaining.cpp41 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()
Dclockwise.cpp115 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/
DGrDrawAtlasPathOp.cpp66 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()
DGrFillPathShader.cpp36 args.fFragBuilder->codeAppendf("half4 %s = %s;", args.fOutputColor, color); in onEmitCode()
37 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in onEmitCode()
DGrStrokeTessellateShader.cpp393 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/
DGrGLSLFragmentProcessor.cpp26 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitChild()
34 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in internalEmitChild()
DGrGLSLPrimitiveProcessor.h81 , fFragBuilder(fragBuilder) in EmitArgs()
93 GrGLSLFPFragmentBuilder* fFragBuilder; member
DGrGLSLFragmentProcessor.h109 : fFragBuilder(fragBuilder) in EmitArgs()
117 GrGLSLFPFragmentBuilder* fFragBuilder; member
/external/skqp/gm/
Dclockwise.cpp70 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/
DGrQuadPerEdgeAA.cpp612 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()
DGrLatticeOp.cpp69 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/
DGrGLSLFragmentProcessor.h102 : fFragBuilder(fragBuilder) in EmitArgs()
109 GrGLSLFPFragmentBuilder* fFragBuilder; member
DGrGLSLGeometryProcessor.h82 , fFragBuilder(fragBuilder) in EmitArgs()
93 GrGLSLFPFragmentBuilder* fFragBuilder; member
/external/skia/tests/sksl/fp/
DGrSectionFields.cpp19 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
DGrSectionClass.cpp19 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
DGrUseExplicitReturn.cpp19 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
DGrModuloOp.cpp19 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
DGrSectionInitializers.cpp19 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()

12345678