/external/skqp/src/gpu/effects/ |
D | GrBezierEffect.cpp | 128 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); in onEmitCode() 129 fragBuilder->codeAppendf("%s = dFdy(%s.xyz);", dklmdy.c_str(), v.fsIn()); in onEmitCode() 132 v.fsIn(), dklmdx.c_str(), in onEmitCode() 133 v.fsIn(), dklmdx.c_str(), in onEmitCode() 134 v.fsIn(), dklmdx.c_str()); in onEmitCode() 137 v.fsIn(), dklmdy.c_str(), in onEmitCode() 138 v.fsIn(), dklmdy.c_str(), in onEmitCode() 139 v.fsIn(), dklmdy.c_str()); in onEmitCode() 145 func.c_str(), v.fsIn(), v.fsIn(), v.fsIn(), v.fsIn()); in onEmitCode() 156 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); in onEmitCode() [all …]
|
D | GrDistanceFieldGeoProc.cpp | 84 fragBuilder->codeAppendf("float2 uv = %s;\n", uv.fsIn()); in onEmitCode() 105 st.fsIn()); in onEmitCode() 109 st.fsIn()); in onEmitCode() 119 fragBuilder->codeAppendf("half st_grad_len = length(dFdx(%s));", st.fsIn()); in onEmitCode() 122 fragBuilder->codeAppendf("half st_grad_len = length(dFdy(%s));", st.fsIn()); in onEmitCode() 139 fragBuilder->codeAppendf("half2 Jdx = dFdx(%s);", st.fsIn()); in onEmitCode() 140 fragBuilder->codeAppendf("half2 Jdy = dFdy(%s);", st.fsIn()); in onEmitCode() 367 fragBuilder->codeAppendf("float2 uv = %s;", uv.fsIn()); in onEmitCode() 389 st.fsIn()); in onEmitCode() 393 st.fsIn()); in onEmitCode() [all …]
|
D | GrAtlasedShaderHelpers.h | 63 args.fFragBuilder->codeAppendf("if (%s == %d) { %s = ", texIdx.fsIn(), i, colorName); in append_multitexture_lookup()
|
/external/skia/src/gpu/effects/ |
D | GrBezierEffect.cpp | 128 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); in onEmitCode() 129 fragBuilder->codeAppendf("%s = dFdy(%s.xyz);", dklmdy.c_str(), v.fsIn()); in onEmitCode() 132 v.fsIn(), dklmdx.c_str(), in onEmitCode() 133 v.fsIn(), dklmdx.c_str(), in onEmitCode() 134 v.fsIn(), dklmdx.c_str()); in onEmitCode() 137 v.fsIn(), dklmdy.c_str(), in onEmitCode() 138 v.fsIn(), dklmdy.c_str(), in onEmitCode() 139 v.fsIn(), dklmdy.c_str()); in onEmitCode() 145 func.c_str(), v.fsIn(), v.fsIn(), v.fsIn(), v.fsIn()); in onEmitCode() 156 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); in onEmitCode() [all …]
|
D | GrDistanceFieldGeoProc.cpp | 84 fragBuilder->codeAppendf("float2 uv = %s;\n", uv.fsIn()); in onEmitCode() 105 st.fsIn()); in onEmitCode() 109 st.fsIn()); in onEmitCode() 119 fragBuilder->codeAppendf("half st_grad_len = length(dFdx(%s));", st.fsIn()); in onEmitCode() 122 fragBuilder->codeAppendf("half st_grad_len = length(dFdy(%s));", st.fsIn()); in onEmitCode() 139 fragBuilder->codeAppendf("half2 Jdx = dFdx(%s);", st.fsIn()); in onEmitCode() 140 fragBuilder->codeAppendf("half2 Jdy = dFdy(%s);", st.fsIn()); in onEmitCode() 375 fragBuilder->codeAppendf("float2 uv = %s;", uv.fsIn()); in onEmitCode() 397 st.fsIn()); in onEmitCode() 401 st.fsIn()); in onEmitCode() [all …]
|
D | GrAtlasedShaderHelpers.h | 63 args.fFragBuilder->codeAppendf("if (%s == %d) { %s = ", texIdx.fsIn(), i, colorName); in append_multitexture_lookup()
|
/external/skqp/src/gpu/ccpr/ |
D | GrCCQuadraticShader.cpp | 57 f->codeAppendf("%s *= %s.w;", outputCoverage, fXYDW.fsIn()); // Sign by wind. in onEmitFragmentCode() 90 fXYDW.fsIn(), fXYDW.fsIn(), fXYDW.fsIn(), fGrad.fsIn(), fGrad.fsIn()); in emitCoverage() 92 f->codeAppendf("%s += min(%s.z, 0);", outputCoverage, fXYDW.fsIn()); // Flat closing edge. in emitCoverage() 120 fXYDW.fsIn(), fXYDW.fsIn(), fXYDW.fsIn()); in emitCoverage() 121 f->codeAppendf("float2x3 grad_xyd = float2x3(%s, %s);", fdXYDdx.fsIn(), fdXYDdy.fsIn()); in emitCoverage() 132 f->codeAppendf("float3 xyd_center = float3(%s.xy, %s.z + 0.5);", fXYDW.fsIn(), fXYDW.fsIn()); in emitCoverage()
|
D | GrCCCubicShader.cpp | 98 fKLMD.fsIn(), fKLMD.fsIn(), fKLMD.fsIn(), fKLMD.fsIn()); in onEmitFragmentCode() 123 f->codeAppendf("float2 grad_f = %s * float2(k, 1);", fGradMatrix.fsIn()); in emitCoverage() 151 f->codeAppendf("float2x4 grad_klmd = float2x4(%s, %s);", fdKLMDdx.fsIn(), fdKLMDdy.fsIn()); in emitCoverage() 165 fKLMD.fsIn(), fKLMD.fsIn()); in emitCoverage()
|
D | GrCCTriangleShader.cpp | 31 f->codeAppendf("%s = %s;", outputCoverage, fCoverageTimesWind.fsIn()); in onEmitFragmentCode() 133 f->codeAppendf( "half2 corner = %s[i];", fCornerLocationInAABoxes.fsIn()); in onEmitFragmentCode() 134 f->codeAppendf( "half2 bisect = %s[i];", fBisectInAABoxes.fsIn()); in onEmitFragmentCode() 151 f->codeAppendf("%s *= %s;", outputCoverage, fWindTimesHalf.fsIn()); in onEmitFragmentCode()
|
/external/skia/src/gpu/ccpr/ |
D | GrCCQuadraticShader.cpp | 57 f->codeAppendf("%s *= %s.w;", outputCoverage, fXYDW.fsIn()); // Sign by wind. in onEmitFragmentCode() 90 fXYDW.fsIn(), fXYDW.fsIn(), fXYDW.fsIn(), fGrad.fsIn(), fGrad.fsIn()); in emitCoverage() 92 f->codeAppendf("%s += min(%s.z, 0);", outputCoverage, fXYDW.fsIn()); // Flat closing edge. in emitCoverage() 122 fXYDW.fsIn(), fXYDW.fsIn(), fXYDW.fsIn()); in emitCoverage() 123 f->codeAppendf("float2x3 grad_xyd = float2x3(%s, %s);", fdXYDdx.fsIn(), fdXYDdy.fsIn()); in emitCoverage() 134 f->codeAppendf("float3 xyd_center = float3(%s.xy, %s.z + 0.5);", fXYDW.fsIn(), fXYDW.fsIn()); in emitCoverage()
|
D | GrCCCubicShader.cpp | 98 fKLMD.fsIn(), fKLMD.fsIn(), fKLMD.fsIn(), fKLMD.fsIn()); in onEmitFragmentCode() 123 f->codeAppendf("float2 grad_f = %s * float2(k, 1);", fGradMatrix.fsIn()); in emitCoverage() 153 f->codeAppendf("float2x4 grad_klmd = float2x4(%s, %s);", fdKLMDdx.fsIn(), fdKLMDdy.fsIn()); in emitCoverage() 167 fKLMD.fsIn(), fKLMD.fsIn()); in emitCoverage()
|
D | GrCCTriangleShader.cpp | 32 f->codeAppendf("%s = %s;", outputCoverage, fCoverageTimesWind.fsIn()); in onEmitFragmentCode() 135 f->codeAppendf( "half2 corner = %s[i];", fCornerLocationInAABoxes.fsIn()); in onEmitFragmentCode() 136 f->codeAppendf( "half2 bisect = %s[i];", fBisectInAABoxes.fsIn()); in onEmitFragmentCode() 153 f->codeAppendf("%s *= %s;", outputCoverage, fWindTimesHalf.fsIn()); in onEmitFragmentCode()
|
/external/skia/src/gpu/ops/ |
D | GrDashOp.cpp | 939 dashParams.fsIn(), dashParams.fsIn(), dashParams.fsIn(), in onEmitCode() 940 dashParams.fsIn()); in onEmitCode() 941 fragBuilder->codeAppendf("half2 fragPosShifted = half2(xShifted, %s.y);", dashParams.fsIn()); in onEmitCode() 942 fragBuilder->codeAppendf("half2 center = half2(%s.y, 0.0);", circleParams.fsIn()); in onEmitCode() 945 fragBuilder->codeAppendf("half diff = dist - %s.x;", circleParams.fsIn()); in onEmitCode() 950 fragBuilder->codeAppendf("alpha *= dist < %s.x + 0.5 ? 1.0 : 0.0;", circleParams.fsIn()); in onEmitCode() 1142 inDashParams.fsIn(), inDashParams.fsIn(), inDashParams.fsIn(), in onEmitCode() 1143 inDashParams.fsIn()); in onEmitCode() 1144 fragBuilder->codeAppendf("half2 fragPosShifted = half2(xShifted, %s.y);", inDashParams.fsIn()); in onEmitCode() 1149 fragBuilder->codeAppendf("xSub = min(fragPosShifted.x - %s.x, 0.0);", inRectParams.fsIn()); in onEmitCode() [all …]
|
D | GrAAConvexPathRenderer.cpp | 592 fragBuilder->codeAppendf("half2 duvdx = dFdx(%s.xy);", v.fsIn()); in onEmitCode() 593 fragBuilder->codeAppendf("half2 duvdy = dFdy(%s.xy);", v.fsIn()); in onEmitCode() 594 fragBuilder->codeAppendf("if (%s.z > 0.0 && %s.w > 0.0) {", v.fsIn(), v.fsIn()); in onEmitCode() 596 fragBuilder->codeAppendf("edgeAlpha = min(min(%s.z, %s.w) + 0.5, 1.0);", v.fsIn(), in onEmitCode() 597 v.fsIn()); in onEmitCode() 601 v.fsIn(), v.fsIn()); in onEmitCode() 602 fragBuilder->codeAppendf("edgeAlpha = (%s.x*%s.x - %s.y);", v.fsIn(), v.fsIn(), in onEmitCode() 603 v.fsIn()); in onEmitCode()
|
D | GrTextureOp.cpp | 181 aaDistName = aaDistVarying.fsIn(); in createGLSLInstance() 202 aaEdgeVarying[0].fsIn(), aaEdgeVarying[0].fsIn(), in createGLSLInstance() 203 aaEdgeVarying[1].fsIn(), aaEdgeVarying[1].fsIn(), in createGLSLInstance() 204 aaEdgeVarying[2].fsIn(), aaEdgeVarying[2].fsIn(), in createGLSLInstance() 205 aaEdgeVarying[3].fsIn(), aaEdgeVarying[3].fsIn()); in createGLSLInstance()
|
D | GrOvalOpFactory.cpp | 208 capRadius.fsIn(), capRadius.fsIn()); in onEmitCode() 374 fragBuilder->codeAppendf("half4 wrapDashes = %s;", wrapDashes.fsIn()); in onEmitCode() 375 fragBuilder->codeAppendf("half lastIntervalLength = %s;", lastIntervalLength.fsIn()); in onEmitCode() 574 fragBuilder->codeAppendf("half2 scaledOffset = %s*%s.xy;", ellipseOffsets.fsIn(), in onEmitCode() 575 ellipseRadii.fsIn()); in onEmitCode() 577 fragBuilder->codeAppendf("half2 grad = 2.0*scaledOffset*%s.xy;", ellipseRadii.fsIn()); in onEmitCode() 587 fragBuilder->codeAppendf("scaledOffset = %s*%s.zw;", ellipseOffsets.fsIn(), in onEmitCode() 588 ellipseRadii.fsIn()); in onEmitCode() 590 fragBuilder->codeAppendf("grad = 2.0*scaledOffset*%s.zw;", ellipseRadii.fsIn()); in onEmitCode() 716 fragBuilder->codeAppendf("half2 scaledOffset = %s.xy;", offsets0.fsIn()); in onEmitCode() [all …]
|
/external/skqp/src/gpu/ops/ |
D | GrDashOp.cpp | 939 dashParams.fsIn(), dashParams.fsIn(), dashParams.fsIn(), in onEmitCode() 940 dashParams.fsIn()); in onEmitCode() 941 fragBuilder->codeAppendf("half2 fragPosShifted = half2(xShifted, %s.y);", dashParams.fsIn()); in onEmitCode() 942 fragBuilder->codeAppendf("half2 center = half2(%s.y, 0.0);", circleParams.fsIn()); in onEmitCode() 945 fragBuilder->codeAppendf("half diff = dist - %s.x;", circleParams.fsIn()); in onEmitCode() 950 fragBuilder->codeAppendf("alpha *= dist < %s.x + 0.5 ? 1.0 : 0.0;", circleParams.fsIn()); in onEmitCode() 1142 inDashParams.fsIn(), inDashParams.fsIn(), inDashParams.fsIn(), in onEmitCode() 1143 inDashParams.fsIn()); in onEmitCode() 1144 fragBuilder->codeAppendf("half2 fragPosShifted = half2(xShifted, %s.y);", inDashParams.fsIn()); in onEmitCode() 1149 fragBuilder->codeAppendf("xSub = min(fragPosShifted.x - %s.x, 0.0);", inRectParams.fsIn()); in onEmitCode() [all …]
|
D | GrAAConvexPathRenderer.cpp | 592 fragBuilder->codeAppendf("half2 duvdx = dFdx(%s.xy);", v.fsIn()); in onEmitCode() 593 fragBuilder->codeAppendf("half2 duvdy = dFdy(%s.xy);", v.fsIn()); in onEmitCode() 594 fragBuilder->codeAppendf("if (%s.z > 0.0 && %s.w > 0.0) {", v.fsIn(), v.fsIn()); in onEmitCode() 596 fragBuilder->codeAppendf("edgeAlpha = min(min(%s.z, %s.w) + 0.5, 1.0);", v.fsIn(), in onEmitCode() 597 v.fsIn()); in onEmitCode() 601 v.fsIn(), v.fsIn()); in onEmitCode() 602 fragBuilder->codeAppendf("edgeAlpha = (%s.x*%s.x - %s.y);", v.fsIn(), v.fsIn(), in onEmitCode() 603 v.fsIn()); in onEmitCode()
|
D | GrTextureOp.cpp | 187 aaDistName = aaDistVarying.fsIn(); in createGLSLInstance() 207 aaEdgeVarying[0].fsIn(), aaEdgeVarying[0].fsIn(), in createGLSLInstance() 208 aaEdgeVarying[1].fsIn(), aaEdgeVarying[1].fsIn(), in createGLSLInstance() 209 aaEdgeVarying[2].fsIn(), aaEdgeVarying[2].fsIn(), in createGLSLInstance() 210 aaEdgeVarying[3].fsIn(), aaEdgeVarying[3].fsIn()); in createGLSLInstance()
|
D | GrOvalOpFactory.cpp | 300 fragBuilder->codeAppendf("half2 scaledOffset = %s*%s.xy;", ellipseOffsets.fsIn(), in onEmitCode() 301 ellipseRadii.fsIn()); in onEmitCode() 303 fragBuilder->codeAppendf("half2 grad = 2.0*scaledOffset*%s.xy;", ellipseRadii.fsIn()); in onEmitCode() 313 fragBuilder->codeAppendf("scaledOffset = %s*%s.zw;", ellipseOffsets.fsIn(), in onEmitCode() 314 ellipseRadii.fsIn()); in onEmitCode() 316 fragBuilder->codeAppendf("grad = 2.0*scaledOffset*%s.zw;", ellipseRadii.fsIn()); in onEmitCode() 442 fragBuilder->codeAppendf("half2 scaledOffset = %s.xy;", offsets0.fsIn()); in onEmitCode() 444 fragBuilder->codeAppendf("half2 duvdx = dFdx(%s);", offsets0.fsIn()); in onEmitCode() 445 fragBuilder->codeAppendf("half2 duvdy = dFdy(%s);", offsets0.fsIn()); in onEmitCode() 449 offsets0.fsIn(), offsets0.fsIn(), offsets0.fsIn(), offsets0.fsIn()); in onEmitCode() [all …]
|
/external/skqp/src/gpu/glsl/ |
D | GrGLSLVarying.cpp | 32 fProgramBuilder->fFS.codeAppendf("%s = %s;", output, v.fsIn()); in writePassThroughAttribute() 114 const char* fsIn = v.fVsOut.c_str(); in finalize() local 118 fsIn = v.fGsOut.c_str(); in finalize() 120 fFragInputs.push_back().set(v.fType, fsIn, GrShaderVar::kIn_TypeModifier, in finalize()
|
D | GrGLSLVarying.h | 44 const char* fsIn() const { SkASSERT(this->isInFragmentShader()); return fFsIn; } in fsIn() function
|
/external/skia/src/gpu/glsl/ |
D | GrGLSLVarying.cpp | 20 fProgramBuilder->fFS.codeAppendf("%s = %s;", output, v.fsIn()); in addPassThroughAttribute() 122 const char* fsIn = v.fVsOut.c_str(); in finalize() local 126 fsIn = v.fGsOut.c_str(); in finalize() 128 fFragInputs.push_back().set(v.fType, fsIn, GrShaderVar::kIn_TypeModifier, in finalize()
|
D | GrGLSLVarying.h | 44 const char* fsIn() const { SkASSERT(this->isInFragmentShader()); return fFsIn; } in fsIn() function
|
/external/skqp/src/gpu/ |
D | GrPathProcessor.cpp | 66 transformHandler->specifyCoordsForCurrCoordTransform(SkString(v.fsIn()), varyingType); in emitTransforms()
|