Searched refs:fsBuilder (Results 1 – 3 of 3) sorted by relevance
/external/skia/src/gpu/glsl/ |
D | GrGLSLBlend.cpp | 16 static void hard_light(GrGLSLFragmentBuilder* fsBuilder, in hard_light() argument 23 fsBuilder->codeAppendf("if (2.0 * %s.%c <= %s.a) {", src, component, src); in hard_light() 24 fsBuilder->codeAppendf("%s.%c = 2.0 * %s.%c * %s.%c;", in hard_light() 26 fsBuilder->codeAppend("} else {"); in hard_light() 27 fsBuilder->codeAppendf("%s.%c = %s.a * %s.a - 2.0 * (%s.a - %s.%c) * (%s.a - %s.%c);", in hard_light() 30 fsBuilder->codeAppend("}"); in hard_light() 32 fsBuilder->codeAppendf("%s.rgb += %s.rgb * (1.0 - %s.a) + %s.rgb * (1.0 - %s.a);", in hard_light() 37 static void color_dodge_component(GrGLSLFragmentBuilder* fsBuilder, in color_dodge_component() argument 42 fsBuilder->codeAppendf("if (0.0 == %s.%c) {", dst, component); in color_dodge_component() 43 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/ops/ |
D | GrMSAAPathRenderer.cpp | 156 GrGLSLPPFragmentBuilder* fsBuilder = args.fFragBuilder; in onEmitCode() local 157 fsBuilder->codeAppendf("if (%s.x * %s.x >= %s.y) discard;", uv.fsIn(), uv.fsIn(), in onEmitCode() 159 fsBuilder->codeAppendf("%s = vec4(1.0);", args.fOutputCoverage); in onEmitCode()
|