CompositeShader

Function

Common
fun CompositeShader(dst: Shader, src: Shader, blendMode: BlendMode): Shader

Creates a composited result between 2 shaders and the specified BlendMode. The specified destination and source Shader inputs will be consumed as the source and destination images for the corresponding blending algorithm.

Parameters

dstShader used as the destination content
srcShader used as the source content
blendModeBlendMode used to composite the source against the destination shader