/external/skia/src/gpu/gl/ |
D | GrGLProgram.cpp | 237 …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 …]
|
D | GrGLShaderBuilder.cpp | 290 …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()
|
D | GrGLShaderBuilder.h | 212 SkString fFSCode; variable
|
D | GrGLEffectMatrix.cpp | 153 builder->fFSCode.appendf("\tvec2 %s = %s.xy / %s.z;", in emitCodeMakeFSCoords2D()
|
/external/skia/src/gpu/effects/ |
D | GrTextureDomainEffect.cpp | 62 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()
|
D | GrConfigConversionEffect.cpp | 34 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()
|
D | GrSimpleTextureEffect.cpp | 30 builder->fFSCode.appendf("\t%s = ", outputColor); in emitCode() 31 builder->appendTextureLookupAndModulate(&builder->fFSCode, in emitCode() 36 builder->fFSCode.append(";\n"); in emitCode()
|
D | GrConvolutionEffect.cpp | 68 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/ |
D | SkColorMatrixFilter.cpp | 417 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()
|
D | SkBicubicImageFilter.cpp | 229 SkString* code = &builder->fFSCode; in emitCode() 260 builder->appendTextureLookup(&builder->fFSCode, samplers[0], coord.c_str()); in emitCode()
|
D | SkMorphologyImageFilter.cpp | 327 SkString* code = &builder->fFSCode; in emitCode() 349 builder->appendTextureLookup(&builder->fFSCode, samplers[0], "coord"); in emitCode()
|
D | SkMatrixConvolutionImageFilter.cpp | 368 SkString* code = &builder->fFSCode; in appendTextureLookup() 406 SkString* code = &builder->fFSCode; in emitCode()
|
D | SkTableColorFilter.cpp | 292 SkString* code = &builder->fFSCode; in emitCode()
|
D | SkMagnifierImageFilter.cpp | 149 SkString* code = &builder->fFSCode; in emitCode()
|
D | SkBlendImageFilter.cpp | 269 SkString* code = &builder->fFSCode; in emitCode()
|
D | SkLightingImageFilter.cpp | 1125 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()
|
D | SkDisplacementMapEffect.cpp | 412 SkString* code = &builder->fFSCode; in emitCode()
|
/external/skia/src/effects/gradients/ |
D | SkTwoPointRadialGradient.cpp | 581 SkString* code = &builder->fFSCode; in emitCode()
|
D | SkTwoPointConicalGradient.cpp | 524 SkString* code = &builder->fFSCode; in emitCode()
|
D | SkGradientShader.cpp | 744 SkString* code = &builder->fFSCode; in emitColorLookup()
|