RuntimeShader

@RequiresApi(value = 33)
data class RuntimeShader(val shader: RuntimeShader, val uniformShaderName: String) : LithoRenderEffect

A LithoRenderEffect that executes the provided android.graphics.RuntimeShader and passes the contents of the android.graphics.RenderNode that this LithoRenderEffect is installed on as an input to the shader.

Parameters

shader

the runtime shader that will bind the inputShaderName to the LithoRenderEffect input

uniformShaderName

the uniform name defined in the RuntimeShader's program to which the contents of the RenderNode will be bound

See RenderEffect.createRuntimeShaderEffect

Constructors

Link copied to clipboard
constructor(shader: RuntimeShader, uniformShaderName: String)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toRenderEffect(): RenderEffect

Creates a RenderEffect instance from this LithoRenderEffect.