---
title: "CompositeShader"
description: "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."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
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

| | |
| --- | --- |
| dst | Shader used as the destination content |
| src | Shader used as the source content |
| blendMode | BlendMode used to composite the source against the destination shader |




