Home
last modified time | relevance | path

Searched refs:fFSCode (Results 1 – 20 of 20) sorted by relevance

/external/skia/src/gpu/gl/
DGrGLProgram.cpp237 …builder->fFSCode.appendf("\tfloat edgeAlpha = abs(dot(vec3(%s.xy,1), %s.xyz));\n", builder->fragme… in genEdgeCoverage()
238 builder->fFSCode.append("\tedgeAlpha = max(1.0 - edgeAlpha, 0.0);\n"); in genEdgeCoverage()
241 builder->fFSCode.append("\tfloat edgeAlpha;\n"); in genEdgeCoverage()
243 builder->fFSCode.appendf("\tvec2 duvdx = dFdx(%s.xy);\n", fsName); in genEdgeCoverage()
244 builder->fFSCode.appendf("\tvec2 duvdy = dFdy(%s.xy);\n", fsName); in genEdgeCoverage()
245 builder->fFSCode.appendf("\tif (%s.z > 0.0 && %s.w > 0.0) {\n", fsName, fsName); in genEdgeCoverage()
247 … builder->fFSCode.appendf("\t\tedgeAlpha = min(min(%s.z, %s.w) + 0.5, 1.0);\n", fsName, fsName); in genEdgeCoverage()
248 builder->fFSCode.append ("\t} else {\n"); in genEdgeCoverage()
249 builder->fFSCode.appendf("\t\tvec2 gF = vec2(2.0*%s.x*duvdx.x - duvdx.y,\n" in genEdgeCoverage()
252 … builder->fFSCode.appendf("\t\tedgeAlpha = (%s.x*%s.x - %s.y);\n", fsName, fsName, fsName); in genEdgeCoverage()
[all …]
DGrGLShaderBuilder.cpp290 …this->fFSCode.prependf("\tvec4 %s = vec4(gl_FragCoord.x, %s - gl_FragCoord.y, gl_FragCoord.zw);\n", in fragmentPosition()
406 shaderStr->append(fFSCode); in getShader()
438 this->fFSCode.appendf("\t{ // %s \n", glEffect->name()); in createAndEmitGLEffect()
447 this->fFSCode.appendf("\t}\n"); in createAndEmitGLEffect()
DGrGLShaderBuilder.h212 SkString fFSCode; variable
DGrGLEffectMatrix.cpp153 builder->fFSCode.appendf("\tvec2 %s = %s.xy / %s.z;", in emitCodeMakeFSCoords2D()
/external/skia/src/gpu/effects/
DGrTextureDomainEffect.cpp62 builder->fFSCode.appendf("\tvec2 clampCoord = clamp(%s, %s.xy, %s.zw);\n", in emitCode()
65 builder->fFSCode.appendf("\t%s = ", outputColor); in emitCode()
66 builder->appendTextureLookupAndModulate(&builder->fFSCode, in emitCode()
70 builder->fFSCode.append(";\n"); in emitCode()
73 builder->fFSCode.append("\tbvec4 outside;\n"); in emitCode()
74 builder->fFSCode.appendf("\toutside.xy = lessThan(%s, %s.xy);\n", coords, domain); in emitCode()
75 builder->fFSCode.appendf("\toutside.zw = greaterThan(%s, %s.zw);\n", coords, domain); in emitCode()
76 builder->fFSCode.appendf("\t%s = any(outside) ? vec4(0.0, 0.0, 0.0, 0.0) : ", outputColor); in emitCode()
77 builder->appendTextureLookupAndModulate(&builder->fFSCode, inputColor, samplers[0], coords); in emitCode()
78 builder->fFSCode.append(";\n"); in emitCode()
DGrConfigConversionEffect.cpp34 builder->fFSCode.appendf("\t\t%s = ", outputColor); in emitCode()
35 builder->appendTextureLookup(&builder->fFSCode, samplers[0], coords, coordsType); in emitCode()
36 builder->fFSCode.append(";\n"); in emitCode()
39 builder->fFSCode.appendf("\t%s = %s.bgra;\n", outputColor, outputColor); in emitCode()
44 builder->fFSCode.appendf( in emitCode()
49 builder->fFSCode.appendf( in emitCode()
54 …builder->fFSCode.appendf("\t\t%s = %s.a <= 0.0 ? vec4(0,0,0,0) : vec4(ceil(%s.%s / %s.a * 255.0) /… in emitCode()
58 …builder->fFSCode.appendf("\t\t%s = %s.a <= 0.0 ? vec4(0,0,0,0) : vec4(floor(%s.%s / %s.a * 255.0) … in emitCode()
66 GrGLSLMulVarBy4f(&builder->fFSCode, 2, outputColor, inputColor); in emitCode()
DGrSimpleTextureEffect.cpp30 builder->fFSCode.appendf("\t%s = ", outputColor); in emitCode()
31 builder->appendTextureLookupAndModulate(&builder->fFSCode, in emitCode()
36 builder->fFSCode.append(";\n"); in emitCode()
DGrConvolutionEffect.cpp68 SkString* code = &builder->fFSCode; in emitCode()
85 builder->appendTextureLookup(&builder->fFSCode, samplers[0], "coord"); in emitCode()
89 GrGLSLMulVarBy4f(&builder->fFSCode, 2, outputColor, inputColor); in emitCode()
/external/skia/src/effects/
DSkColorMatrixFilter.cpp417 builder->fFSCode.appendf("\tfloat nonZeroAlpha = max(%s.a, 0.00001);\n", inputColor); in emitCode()
418 … builder->fFSCode.appendf("\t%s = %s * vec4(%s.rgb / nonZeroAlpha, nonZeroAlpha) + %s;\n", in emitCode()
423 builder->fFSCode.appendf("\t%s.rgb *= %s.a;\n", outputColor, outputColor); in emitCode()
DSkBicubicImageFilter.cpp229 SkString* code = &builder->fFSCode; in emitCode()
260 builder->appendTextureLookup(&builder->fFSCode, samplers[0], coord.c_str()); in emitCode()
DSkMorphologyImageFilter.cpp327 SkString* code = &builder->fFSCode; in emitCode()
349 builder->appendTextureLookup(&builder->fFSCode, samplers[0], "coord"); in emitCode()
DSkMatrixConvolutionImageFilter.cpp368 SkString* code = &builder->fFSCode; in appendTextureLookup()
406 SkString* code = &builder->fFSCode; in emitCode()
DSkTableColorFilter.cpp292 SkString* code = &builder->fFSCode; in emitCode()
DSkMagnifierImageFilter.cpp149 SkString* code = &builder->fFSCode; in emitCode()
DSkBlendImageFilter.cpp269 SkString* code = &builder->fFSCode; in emitCode()
DSkLightingImageFilter.cpp1125 SkString* code = &builder->fFSCode; in emitCode()
1357 builder->fFSCode.append(builder->getUniformCStr(this->lightColorUni())); in emitLightColor()
1469 builder->fFSCode.appendf("%s(%s)", fLightColorFunc.c_str(), surfaceToLight); in emitLightColor()
DSkDisplacementMapEffect.cpp412 SkString* code = &builder->fFSCode; in emitCode()
/external/skia/src/effects/gradients/
DSkTwoPointRadialGradient.cpp581 SkString* code = &builder->fFSCode; in emitCode()
DSkTwoPointConicalGradient.cpp524 SkString* code = &builder->fFSCode; in emitCode()
DSkGradientShader.cpp744 SkString* code = &builder->fFSCode; in emitColorLookup()