Searched refs:fsBuilder (Results 1 – 4 of 4) sorted by relevance
/external/skia/src/gpu/glsl/ |
D | GrGLSLBlend.cpp | 14 static void hard_light(GrGLSLFragmentBuilder* fsBuilder, in hard_light() argument 21 fsBuilder->codeAppendf("if (2.0 * %s.%c <= %s.a) {", src, component, src); in hard_light() 22 fsBuilder->codeAppendf("%s.%c = 2.0 * %s.%c * %s.%c;", in hard_light() 24 fsBuilder->codeAppend("} else {"); in hard_light() 25 fsBuilder->codeAppendf("%s.%c = %s.a * %s.a - 2.0 * (%s.a - %s.%c) * (%s.a - %s.%c);", in hard_light() 28 fsBuilder->codeAppend("}"); in hard_light() 30 fsBuilder->codeAppendf("%s.rgb += %s.rgb * (1.0 - %s.a) + %s.rgb * (1.0 - %s.a);", in hard_light() 35 static void color_dodge_component(GrGLSLFragmentBuilder* fsBuilder, in color_dodge_component() argument 40 fsBuilder->codeAppendf("if (0.0 == %s.%c) {", dst, component); in color_dodge_component() 41 fsBuilder->codeAppendf("%s.%c = %s.%c * (1.0 - %s.a);", in color_dodge_component() [all …]
|
D | GrGLSLBlend.h | 21 void AppendMode(GrGLSLFragmentBuilder* fsBuilder, const char* srcColor, 24 void AppendRegionOp(GrGLSLFragmentBuilder* fsBuilder, const char* srcColor,
|
/external/skia/src/gpu/batches/ |
D | GrPLSPathRenderer.cpp | 339 GrGLSLPPFragmentBuilder* fsBuilder = args.fFragBuilder; in onEmitCode() local 340 SkAssertResult(fsBuilder->enableFeature( in onEmitCode() 342 SkAssertResult(fsBuilder->enableFeature( in onEmitCode() 344 fsBuilder->declAppendf(GR_GL_PLS_PATH_DATA_DECL); in onEmitCode() 349 fsBuilder->codeAppendf("highp vec2 firstSample = %s.xy - vec2(0.25);", in onEmitCode() 350 fsBuilder->fragmentPosition()); in onEmitCode() 351 fsBuilder->codeAppendf("highp vec2 delta1 = %s;", delta1.fsIn()); in onEmitCode() 352 fsBuilder->codeAppendf("highp vec2 delta2 = %s;", delta2.fsIn()); in onEmitCode() 353 fsBuilder->codeAppendf("highp vec2 delta3 = %s;", delta3.fsIn()); in onEmitCode() 358 fsBuilder->codeAppendf("highp float d1 = dot(delta1, (firstSample - %s).yx) * 2.0;", in onEmitCode() [all …]
|
/external/skia/experimental/SkPerlinNoiseShader2/ |
D | SkPerlinNoiseShader2.cpp | 735 GrGLSLFragmentBuilder* fsBuilder = args.fFragBuilder; in emitCode() local 737 SkString vCoords = fsBuilder->ensureFSCoords2D(args.fCoords, 0); in emitCode() 819 fsBuilder->appendTextureLookup(&noiseCode, args.fSamplers[0], xCoords.c_str(), in emitCode() 830 fsBuilder->appendTextureLookup(&noiseCode, args.fSamplers[0], xCoords.c_str(), in emitCode() 855 fsBuilder->appendTextureLookup(&noiseCode, args.fSamplers[1], latticeCoords.c_str(), in emitCode() 867 fsBuilder->appendTextureLookup(&noiseCode, args.fSamplers[1], latticeCoords.c_str(), in emitCode() 883 fsBuilder->appendTextureLookup(&noiseCode, args.fSamplers[1], latticeCoords.c_str(), in emitCode() 895 fsBuilder->appendTextureLookup(&noiseCode, args.fSamplers[1], latticeCoords.c_str(), in emitCode() 908 fsBuilder->emitFunction(kFloat_GrSLType, in emitCode() 912 fsBuilder->emitFunction(kFloat_GrSLType, in emitCode() [all …]
|