Home
last modified time | relevance | path

Searched refs:fsIn (Results 1 – 25 of 42) sorted by relevance

12

/third_party/flutter/skia/src/gpu/effects/
DGrBezierEffect.cpp126 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); in onEmitCode()
127 fragBuilder->codeAppendf("%s = dFdy(%s.xyz);", dklmdy.c_str(), v.fsIn()); in onEmitCode()
130 v.fsIn(), dklmdx.c_str(), in onEmitCode()
131 v.fsIn(), dklmdx.c_str(), in onEmitCode()
132 v.fsIn(), dklmdx.c_str()); in onEmitCode()
135 v.fsIn(), dklmdy.c_str(), in onEmitCode()
136 v.fsIn(), dklmdy.c_str(), in onEmitCode()
137 v.fsIn(), dklmdy.c_str()); in onEmitCode()
143 func.c_str(), v.fsIn(), v.fsIn(), v.fsIn(), v.fsIn()); in onEmitCode()
154 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); in onEmitCode()
[all …]
DGrDistanceFieldGeoProc.cpp85 fragBuilder->codeAppendf("float2 uv = %s;\n", uv.fsIn()); in onEmitCode()
106 "*half(dFdx(%s.x)));", st.fsIn()); in onEmitCode()
110 "*half(dFdy(%s.y)));", st.fsIn()); in onEmitCode()
120 fragBuilder->codeAppendf("half st_grad_len = length(half2(dFdx(%s)));", st.fsIn()); in onEmitCode()
123 fragBuilder->codeAppendf("half st_grad_len = length(half2(dFdy(%s)));", st.fsIn()); in onEmitCode()
141 fragBuilder->codeAppendf("half2 Jdx = half2(dFdx(%s));", st.fsIn()); in onEmitCode()
142 fragBuilder->codeAppendf("half2 Jdy = half2(dFdy(%s));", st.fsIn()); in onEmitCode()
386 fragBuilder->codeAppendf("float2 uv = %s;", uv.fsIn()); in onEmitCode()
408 "*half(dFdx(%s.x)));", st.fsIn()); in onEmitCode()
412 "*half(dFdy(%s.y)));", st.fsIn()); in onEmitCode()
[all …]
DGrAtlasedShaderHelpers.h75 args.fFragBuilder->codeAppendf("if (%s == %d) { %s = ", texIdx.fsIn(), i, colorName); in append_multitexture_lookup()
/third_party/flutter/skia/src/gpu/ccpr/
DGrCCConicShader.cpp81 this->calcHullCoverage(&AccessCodeString(f), fKLM_fWind.fsIn(), fGrad_fCorner.fsIn(), in emitFragmentCoverageCode()
83 f->codeAppendf("%s *= half(%s.w);", outputCoverage, fKLM_fWind.fsIn()); // Wind. in emitFragmentCoverageCode()
87 outputCoverage, fGrad_fCorner.fsIn(), fGrad_fCorner.fsIn(), in emitFragmentCoverageCode()
106 fKLM_fWind.fsIn(), fKLM_fWind.fsIn(), fKLM_fWind.fsIn()); in emitSampleMaskCode()
108 f->codeAppendf("float2 grad = %s;", fGrad_fCorner.fsIn()); in emitSampleMaskCode()
DGrCCQuadraticShader.cpp65 this->calcHullCoverage(&AccessCodeString(f), fCoord_fGrad.fsIn(), in emitFragmentCoverageCode()
66 SkStringPrintf("%s.x", fEdge_fWind_fCorner.fsIn()).c_str(), in emitFragmentCoverageCode()
68 f->codeAppendf("%s *= half(%s.y);", outputCoverage, fEdge_fWind_fCorner.fsIn()); // Wind. in emitFragmentCoverageCode()
72 outputCoverage, fEdge_fWind_fCorner.fsIn(), fEdge_fWind_fCorner.fsIn(), in emitFragmentCoverageCode()
91 f->codeAppendf("float x = %s.x, y = %s.y;", fCoord_fGrad.fsIn(), fCoord_fGrad.fsIn()); in emitSampleMaskCode()
93 f->codeAppendf("float2 grad = %s.zw;", fCoord_fGrad.fsIn()); in emitSampleMaskCode()
DGrCCCubicShader.cpp124 &AccessCodeString(f), fKLM_fEdge.fsIn(), fGradMatrix.fsIn(), outputCoverage); in emitFragmentCoverageCode()
132 if (fCornerCoverage.fsIn()) { in emitFragmentCoverageCode()
134 outputCoverage, fCornerCoverage.fsIn(), fCornerCoverage.fsIn(), in emitFragmentCoverageCode()
154 fKLM_fEdge.fsIn(), fKLM_fEdge.fsIn(), fKLM_fEdge.fsIn()); in emitSampleMaskCode()
156 f->codeAppendf("float2x2 grad_matrix = float2x2(%s);", fGradMatrix.fsIn()); in emitSampleMaskCode()
DGrCCCoverageProcessor.cpp39 f->codeAppendf("%s = %s;", outputCoverage, fCoverages.fsIn()); in emitFragmentCoverageCode()
42 outputCoverage, fCoverages.fsIn(), fCoverages.fsIn(), fCoverages.fsIn()); in emitFragmentCoverageCode()
DGrCCPathProcessor.cpp226 f->appendTextureLookup(args.fTexSamplers[0], SkStringPrintf("%s.xy", texcoord.fsIn()).c_str(), in onEmitCode()
235 f->codeAppendf("coverage = min(abs(coverage) * half(%s.z), .5);", texcoord.fsIn()); in onEmitCode()
/third_party/skia/src/gpu/effects/
DGrBezierEffect.cpp109 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); in onEmitCode()
110 fragBuilder->codeAppendf("%s = dFdy(%s.xyz);", dklmdy.c_str(), v.fsIn()); in onEmitCode()
113 v.fsIn(), dklmdx.c_str(), in onEmitCode()
114 v.fsIn(), dklmdx.c_str(), in onEmitCode()
115 v.fsIn(), dklmdx.c_str()); in onEmitCode()
118 v.fsIn(), dklmdy.c_str(), in onEmitCode()
119 v.fsIn(), dklmdy.c_str(), in onEmitCode()
120 v.fsIn(), dklmdy.c_str()); in onEmitCode()
126 func.c_str(), v.fsIn(), v.fsIn(), v.fsIn(), v.fsIn()); in onEmitCode()
277 fragBuilder->codeAppendf("half2 duvdx = half2(dFdx(%s.xy));", v.fsIn()); in onEmitCode()
[all …]
DGrDistanceFieldGeoProc.cpp110 fragBuilder->codeAppendf("float2 uv = %s;\n", uv.fsIn()); in onEmitCode()
131 "afwidth = abs(" SK_DistanceFieldAAFactor "*half(dFdy(%s.y)));", st.fsIn()); in onEmitCode()
134 "afwidth = abs(" SK_DistanceFieldAAFactor "*half(dFdx(%s.x)));", st.fsIn()); in onEmitCode()
144 fragBuilder->codeAppendf("half st_grad_len = length(half2(dFdy(%s)));", st.fsIn()); in onEmitCode()
146 fragBuilder->codeAppendf("half st_grad_len = length(half2(dFdx(%s)));", st.fsIn()); in onEmitCode()
164 fragBuilder->codeAppendf("half2 Jdx = half2(dFdx(%s));", st.fsIn()); in onEmitCode()
165 fragBuilder->codeAppendf("half2 Jdy = half2(dFdy(%s));", st.fsIn()); in onEmitCode()
395 fragBuilder->codeAppendf("float2 uv = %s;", uv.fsIn()); in onEmitCode()
416 "afwidth = abs(" SK_DistanceFieldAAFactor "*half(dFdy(%s.y)));", st.fsIn()); in onEmitCode()
419 "afwidth = abs(" SK_DistanceFieldAAFactor "*half(dFdx(%s.x)));", st.fsIn()); in onEmitCode()
[all …]
DGrAtlasedShaderHelpers.h92 args.fFragBuilder->codeAppendf("if (%s == %d) { %s = ", texIdx.fsIn(), i, colorName); in append_multitexture_lookup()
/third_party/flutter/skia/src/gpu/ops/
DGrDashOp.cpp871 dashParams.fsIn(), dashParams.fsIn(), dashParams.fsIn(), in onEmitCode()
872 dashParams.fsIn()); in onEmitCode()
874 dashParams.fsIn()); in onEmitCode()
875 fragBuilder->codeAppendf("half2 center = half2(%s.y, 0.0);", circleParams.fsIn()); in onEmitCode()
878 fragBuilder->codeAppendf("half diff = dist - %s.x;", circleParams.fsIn()); in onEmitCode()
883 fragBuilder->codeAppendf("alpha *= dist < %s.x + 0.5 ? 1.0 : 0.0;", circleParams.fsIn()); in onEmitCode()
1071 inDashParams.fsIn(), inDashParams.fsIn(), inDashParams.fsIn(), in onEmitCode()
1072 inDashParams.fsIn()); in onEmitCode()
1074 inDashParams.fsIn()); in onEmitCode()
1080 inRectParams.fsIn()); in onEmitCode()
[all …]
DGrAAConvexPathRenderer.cpp581 fragBuilder->codeAppendf("half2 duvdx = half2(dFdx(%s.xy));", v.fsIn()); in onEmitCode()
582 fragBuilder->codeAppendf("half2 duvdy = half2(dFdy(%s.xy));", v.fsIn()); in onEmitCode()
583 fragBuilder->codeAppendf("if (%s.z > 0.0 && %s.w > 0.0) {", v.fsIn(), v.fsIn()); in onEmitCode()
585 fragBuilder->codeAppendf("edgeAlpha = min(min(%s.z, %s.w) + 0.5, 1.0);", v.fsIn(), in onEmitCode()
586 v.fsIn()); in onEmitCode()
590 v.fsIn(), v.fsIn()); in onEmitCode()
591 fragBuilder->codeAppendf("edgeAlpha = (%s.x*%s.x - %s.y);", v.fsIn(), v.fsIn(), in onEmitCode()
592 v.fsIn()); in onEmitCode()
DGrFillRRectOp.cpp482 f->codeAppendf("float x_plus_1=%s.x, y=%s.y;", arcCoord.fsIn(), arcCoord.fsIn()); in onEmitCode()
493 f->codeAppendf("float gx=%s.z, gy=%s.w;", arcCoord.fsIn(), arcCoord.fsIn()); in onEmitCode()
667 f->codeAppendf("if (float2(0) != %s.xy) {", arcCoord.fsIn()); in onEmitCode()
668 f->codeAppendf( "float fn = dot(%s.xy, %s.xy) - 1;", arcCoord.fsIn(), arcCoord.fsIn()); in onEmitCode()
672 f->codeAppendf("float2 grad = %s.zw;", arcCoord.fsIn()); in onEmitCode()
DGrOvalOpFactory.cpp196 capRadius.fsIn(), capRadius.fsIn()); in onEmitCode()
367 fragBuilder->codeAppendf("half4 wrapDashes = %s;", wrapDashes.fsIn()); in onEmitCode()
368 fragBuilder->codeAppendf("half lastIntervalLength = %s;", lastIntervalLength.fsIn()); in onEmitCode()
589 fragBuilder->codeAppendf("float2 offset = %s.xy;", ellipseOffsets.fsIn()); in onEmitCode()
591 fragBuilder->codeAppendf("offset *= %s.xy;", ellipseRadii.fsIn()); in onEmitCode()
596 ellipseOffsets.fsIn(), ellipseRadii.fsIn()); in onEmitCode()
598 fragBuilder->codeAppendf("float2 grad = 2.0*offset*%s.xy;", ellipseRadii.fsIn()); in onEmitCode()
610 ellipseOffsets.fsIn()); in onEmitCode()
618 fragBuilder->codeAppendf("offset = %s.xy*%s.zw;", ellipseOffsets.fsIn(), in onEmitCode()
619 ellipseRadii.fsIn()); in onEmitCode()
[all …]
/third_party/skia/src/gpu/ops/
DDashOp.cpp805 dashParams.fsIn(), dashParams.fsIn(), dashParams.fsIn(), in onEmitCode()
806 dashParams.fsIn()); in onEmitCode()
808 dashParams.fsIn()); in onEmitCode()
809 fragBuilder->codeAppendf("half2 center = half2(%s.y, 0.0);", circleParams.fsIn()); in onEmitCode()
812 fragBuilder->codeAppendf("half diff = dist - %s.x;", circleParams.fsIn()); in onEmitCode()
817 fragBuilder->codeAppendf("alpha *= dist < %s.x + 0.5 ? 1.0 : 0.0;", circleParams.fsIn()); in onEmitCode()
995 inDashParams.fsIn(), inDashParams.fsIn(), inDashParams.fsIn(), in onEmitCode()
996 inDashParams.fsIn()); in onEmitCode()
998 inDashParams.fsIn()); in onEmitCode()
1004 inRectParams.fsIn()); in onEmitCode()
[all …]
DAtlasInstancedHelper.cpp80 atlasCoverage = )", atlasCoord.fsIn(), atlasBounds.fsIn()); in injectShaderCode()
86 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[0], atlasCoord.fsIn()); in injectShaderCode()
DAAConvexPathRenderer.cpp642 fragBuilder->codeAppendf("half2 duvdx = half2(dFdx(%s.xy));", v.fsIn()); in makeProgramImpl()
643 fragBuilder->codeAppendf("half2 duvdy = half2(dFdy(%s.xy));", v.fsIn()); in makeProgramImpl()
644 fragBuilder->codeAppendf("if (%s.z > 0.0 && %s.w > 0.0) {", v.fsIn(), v.fsIn()); in makeProgramImpl()
646 fragBuilder->codeAppendf("edgeAlpha = half(min(min(%s.z, %s.w) + 0.5, 1.0));", v.fsIn(), in makeProgramImpl()
647 v.fsIn()); in makeProgramImpl()
651 v.fsIn(), v.fsIn()); in makeProgramImpl()
652 fragBuilder->codeAppendf("edgeAlpha = half(%s.x*%s.x - %s.y);", v.fsIn(), v.fsIn(), in makeProgramImpl()
653 v.fsIn()); in makeProgramImpl()
DGrOvalOpFactory.cpp226 capRadius.fsIn(), capRadius.fsIn()); in onEmitCode()
398 fragBuilder->codeAppendf("half4 wrapDashes = %s;", wrapDashes.fsIn()); in onEmitCode()
399 fragBuilder->codeAppendf("half lastIntervalLength = %s;", lastIntervalLength.fsIn()); in onEmitCode()
623 fragBuilder->codeAppendf("float2 offset = %s.xy;", ellipseOffsets.fsIn()); in onEmitCode()
625 fragBuilder->codeAppendf("offset *= %s.xy;", ellipseRadii.fsIn()); in onEmitCode()
630 ellipseOffsets.fsIn(), ellipseRadii.fsIn()); in onEmitCode()
632 fragBuilder->codeAppendf("float2 grad = 2.0*offset*%s.xy;", ellipseRadii.fsIn()); in onEmitCode()
644 ellipseOffsets.fsIn()); in onEmitCode()
652 fragBuilder->codeAppendf("offset = %s.xy*%s.zw;", ellipseOffsets.fsIn(), in onEmitCode()
653 ellipseRadii.fsIn()); in onEmitCode()
[all …]
/third_party/flutter/skia/gm/
Dsamplelocations.cpp174 coord.fsIn(), coord.fsIn()); in onEmitCode()
176 f->codeAppendf("float2x2 grad = float2x2(%s.x, 0, 0, %s.y);", grad.fsIn(), grad.fsIn()); in onEmitCode()
179 f->sampleOffsets(), coord.fsIn()); in onEmitCode()
Dfwidth_squircle.cpp108 squircleCoord.fsIn(), squircleCoord.fsIn()); in onEmitCode()
/third_party/flutter/skia/src/gpu/glsl/
DGrGLSLVarying.cpp20 fProgramBuilder->fFS.codeAppendf("%s = %s;", output, v.fsIn()); in addPassThroughAttribute()
118 const char* fsIn = v.fVsOut.c_str(); in finalize() local
122 fsIn = v.fGsOut.c_str(); in finalize()
124 fFragInputs.push_back().set(v.fType, fsIn, GrShaderVar::kIn_TypeModifier, nullptr, in finalize()
/third_party/skia/src/gpu/glsl/
DGrGLSLVarying.cpp19 fProgramBuilder->fFS.codeAppendf("%s = %s;", output, v.fsIn()); in addPassThroughAttribute()
101 const char* fsIn = v.fVsOut.c_str(); in finalize() local
102 fFragInputs.emplace_back(SkString(fsIn), v.fType, GrShaderVar::TypeModifier::In, in finalize()
DGrGLSLVarying.h65 const char* fsIn() const { SkASSERT(this->isInFragmentShader()); return fFsIn; } in fsIn() function
74 return GrShaderVar(this->fsIn(), fType, GrShaderVar::TypeModifier::In); in fsInVar()
/third_party/skia/gm/
Dfwidth_squircle.cpp128 squircleCoord.fsIn(), squircleCoord.fsIn()); in makeProgramImpl()

12