code-generated blending functions