Home
last modified time | relevance | path

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

123456

/third_party/skia/src/gpu/ops/
DAtlasInstancedHelper.cpp74 args.fFragBuilder->codeAppendf(R"( in injectShaderCode()
81 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[0], "atlasCoord"); in injectShaderCode()
82 args.fFragBuilder->codeAppendf(R"(.a; in injectShaderCode()
85 args.fFragBuilder->codeAppendf("half atlasCoverage = "); in injectShaderCode()
86 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[0], atlasCoord.fsIn()); in injectShaderCode()
87 args.fFragBuilder->codeAppendf(".a;"); in injectShaderCode()
91 args.fFragBuilder->codeAppendf("%s *= (1 - atlasCoverage);", args.fOutputCoverage); in injectShaderCode()
93 args.fFragBuilder->codeAppendf("%s *= atlasCoverage;", args.fOutputCoverage); in injectShaderCode()
DQuadPerEdgeAA.cpp708 args.fFragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in makeProgramImpl()
718 args.fFragBuilder->codeAppendf("half4 %s = half4(1);", args.fOutputColor); in makeProgramImpl()
727 args.fFragBuilder->codeAppend("float2 texCoord;"); in makeProgramImpl()
734 args.fFragBuilder->codeAppendf("texCoord = %s.xy / %s.z;", in makeProgramImpl()
743 args.fFragBuilder->codeAppend("float4 subset;"); in makeProgramImpl()
747 args.fFragBuilder->codeAppend( in makeProgramImpl()
752 args.fFragBuilder->codeAppendf( in makeProgramImpl()
756 args.fFragBuilder->appendTextureLookupAndBlend( in makeProgramImpl()
759 args.fFragBuilder->codeAppend(");"); in makeProgramImpl()
776 args.fFragBuilder->codeAppendf("float coverage = %s * sk_FragCoord.w;", in makeProgramImpl()
[all …]
DLatticeOp.cpp71 args.fFragBuilder->codeAppend("float2 textureCoords;"); in makeProgramImpl()
75 args.fFragBuilder->codeAppend("float4 textureDomain;"); in makeProgramImpl()
80 args.fFragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in makeProgramImpl()
84 args.fFragBuilder->codeAppendf("%s = ", args.fOutputColor); in makeProgramImpl()
85 args.fFragBuilder->appendTextureLookupAndBlend( in makeProgramImpl()
91 args.fFragBuilder->codeAppend(";"); in makeProgramImpl()
92 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in makeProgramImpl()
DDrawAtlasPathOp.cpp102 args.fFragBuilder->codeAppendf("half4 %s = half4(1);", args.fOutputCoverage); in onEmitCode()
105 args.fFragBuilder->codeAppendf("half4 %s;", args.fOutputColor); in onEmitCode()
/third_party/skia/src/gpu/effects/
DGrAtlasedShaderHelpers.h104 args.fFragBuilder->codeAppendf("%s = float4(1, 1, 1, 1);", colorName); in append_multitexture_lookup()
110 args.fFragBuilder->codeAppendf("if (%s == %d) { %s = ", texIdx.fsIn(), i, colorName); in append_multitexture_lookup()
111 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[i], coordName); in append_multitexture_lookup()
112 args.fFragBuilder->codeAppend("; } else "); in append_multitexture_lookup()
114 args.fFragBuilder->codeAppendf("{ %s = ", colorName); in append_multitexture_lookup()
115 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[numTextureSamplers - 1], coordName); in append_multitexture_lookup()
116 args.fFragBuilder->codeAppend("; }"); in append_multitexture_lookup()
DGrSkSLFP.cpp100 return String(fArgs.fFragBuilder->getMangledFunctionName(name).c_str()); in emitCode()
105 fArgs.fFragBuilder->codeAppend(body); in emitCode()
107 fArgs.fFragBuilder->emitFunction(decl, body); in emitCode()
112 fArgs.fFragBuilder->emitFunctionPrototype(decl); in emitCode()
116 fArgs.fFragBuilder->definitionAppend(definition); in emitCode()
120 fArgs.fFragBuilder->definitionAppend(declaration); in emitCode()
169 args.fFragBuilder->codeAppendf("%s = %s;\n", in emitCode()
178 args.fFragBuilder->codeAppendf( in emitCode()
194 GrShaderVar inputColorCopy(args.fFragBuilder->getMangledFunctionName("inColor"), in emitCode()
196 args.fFragBuilder->declareGlobal(inputColorCopy); in emitCode()
[all …]
/third_party/flutter/skia/src/gpu/effects/
DGrAtlasedShaderHelpers.h75 args.fFragBuilder->codeAppendf("if (%s == %d) { %s = ", texIdx.fsIn(), i, colorName); in append_multitexture_lookup()
76 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[i], coordName, in append_multitexture_lookup()
78 args.fFragBuilder->codeAppend("; } else "); in append_multitexture_lookup()
80 args.fFragBuilder->codeAppendf("{ %s = ", colorName); in append_multitexture_lookup()
81 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[numTextureSamplers-1], coordName, in append_multitexture_lookup()
83 args.fFragBuilder->codeAppend("; }"); in append_multitexture_lookup()
DGrShadowGeoProc.cpp25 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in onEmitCode()
/third_party/skia/gm/
Dfp_sample_chaining.cpp50 args.fFragBuilder->codeAppendf("return %s;\n", sample.c_str()); in onMakeProgramImpl()
85 args.fFragBuilder->codeAppendf("float2 coord = %s + float2(0, 8);", in onMakeProgramImpl()
88 args.fFragBuilder->codeAppendf("return %s;\n", sample.c_str()); in onMakeProgramImpl()
114 auto fb = args.fFragBuilder; in onMakeProgramImpl()
Dclockwise.cpp108 args.fFragBuilder->codeAppendf( in makeProgramImpl()
112 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in makeProgramImpl()
115 args.fFragBuilder->codeAppendf("half4 %s = half4(min(half(sk_FragCoord.y), 1));", in makeProgramImpl()
/third_party/skia/src/gpu/tessellate/shaders/
DGrPathTessellationShader.cpp140 args.fFragBuilder->codeAppendf("half4 %s = %s;", args.fOutputColor, color); in onEmitCode()
142 args.fFragBuilder->codeAppendf("half4 %s = %s;", in onEmitCode()
145 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in onEmitCode()
DGrStrokeTessellationShader.cpp347 args.fFragBuilder->codeAppendf("half4 %s = %s;", args.fOutputColor, colorUniformName); in emitFragmentCode()
349 args.fFragBuilder->codeAppendf("half4 %s = %s;", args.fOutputColor, in emitFragmentCode()
352 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in emitFragmentCode()
/third_party/flutter/skia/src/gpu/ops/
DGrQuadPerEdgeAA.cpp957 args.fFragBuilder->codeAppendf("%s = half4(1);", args.fOutputColor); in createGLSLInstance()
965 args.fFragBuilder->codeAppend("float2 texCoord;"); in createGLSLInstance()
972 args.fFragBuilder->codeAppendf("texCoord = %s.xy / %s.z;", in createGLSLInstance()
980 args.fFragBuilder->codeAppend("float4 domain;"); in createGLSLInstance()
983 args.fFragBuilder->codeAppend( in createGLSLInstance()
988 args.fFragBuilder->codeAppendf("%s = ", args.fOutputColor); in createGLSLInstance()
989 args.fFragBuilder->appendTextureLookupAndModulate( in createGLSLInstance()
992 args.fFragBuilder->codeAppend(";"); in createGLSLInstance()
1005 args.fFragBuilder->codeAppendf("float coverage = %s * sk_FragCoord.w;", in createGLSLInstance()
1010 args.fFragBuilder->codeAppendf("float coverage = %s;", coverage.fsIn()); in createGLSLInstance()
[all …]
DGrLatticeOp.cpp70 args.fFragBuilder->codeAppend("float2 textureCoords;"); in createGLSLInstance()
73 args.fFragBuilder->codeAppend("float4 textureDomain;"); in createGLSLInstance()
79 args.fFragBuilder->codeAppendf("%s = ", args.fOutputColor); in createGLSLInstance()
80 args.fFragBuilder->appendTextureLookupAndModulate( in createGLSLInstance()
86 args.fFragBuilder->codeAppend(";"); in createGLSLInstance()
87 args.fFragBuilder->codeAppendf("%s = half4(1);", args.fOutputCoverage); in createGLSLInstance()
/third_party/skia/src/gpu/
DGrFragmentProcessor.cpp278 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in SwizzleOutput()
390 args.fFragBuilder->codeAppendf("return %s;", result.c_str()); in Compose()
518 const char* dstColor = args.fFragBuilder->dstColor(); in SurfaceColor()
519 args.fFragBuilder->codeAppendf("return %s;", dstColor); in SurfaceColor()
576 args.fFragBuilder->codeAppendf("return %s;", child.c_str()); in DeviceSpace()
821 args.fFragBuilder->forceHighPrecision(); in HighPrecision()
822 args.fFragBuilder->codeAppendf("return %s;", childColor.c_str()); in HighPrecision()
881 if (args.fFragBuilder->getProgramBuilder()->fragmentProcessorHasCoordsParam(childProc)) { in invokeChild()
933 if (args.fFragBuilder->getProgramBuilder()->fragmentProcessorHasCoordsParam(childProc)) { in invokeChildWithMatrix()
/third_party/flutter/skia/gm/
Dclockwise.cpp107 args.fFragBuilder->codeAppendf( in onEmitCode()
110 args.fFragBuilder->codeAppendf("%s = half4(1);", args.fOutputCoverage); in onEmitCode()
113 args.fFragBuilder->codeAppendf("%s = half4(min(half(sk_FragCoord.y), 1));", in onEmitCode()
/third_party/flutter/skia/src/gpu/glsl/
DGrGLSLPrimitiveProcessor.h81 , fFragBuilder(fragBuilder) in EmitArgs()
93 GrGLSLFPFragmentBuilder* fFragBuilder; member
DGrGLSLFragmentProcessor.cpp29 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in invokeChild()
46 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in internalInvokeChild()
DGrGLSLFragmentProcessor.h109 : fFragBuilder(fragBuilder) in EmitArgs()
117 GrGLSLFPFragmentBuilder* fFragBuilder; member
/third_party/flutter/skia/src/gpu/effects/generated/
DGrLumaColorFilterEffect.cpp23 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
DGrPremulInputFragmentProcessor.cpp23 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
DGrBlurredEdgeFragmentProcessor.cpp23 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
/third_party/flutter/skia/src/gpu/gradients/generated/
DGrTextureGradientColorizer.cpp23 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode()
/third_party/skia/src/sksl/
DSkSLThreadContext.cpp151 CurrentEmitArgs()->fFragBuilder->fDeclarations.swap(instance.fStack.top().fSavedDeclarations); in StartFragmentProcessor()
158 CurrentEmitArgs()->fFragBuilder->fDeclarations.swap(instance.fStack.top().fSavedDeclarations); in EndFragmentProcessor()
/third_party/skia/tools/gpu/
DTestOps.cpp52 args.fFragBuilder->codeAppendf("half4 %s = %s;", in makeProgramImpl()
54 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage); in makeProgramImpl()

123456