createRuntimeShaderRenderEffect

Creates a runtime shader PlatformRenderEffect with the given effect and child shaders.

Pass exactly one name in shaderNames and exactly one entry in inputs. Platforms handle more differently: Skiko binds inputs[i] to shaderNames[i] and requires the two arrays to be the same size, while Android applies a single content shader and chains every non-null input ahead of it.

Parameters

effect

The runtime effect to use.

shaderNames

Names of the shader uniforms in the SKSL code. Pass exactly one.

inputs

The input render effects to use for each shader. Pass exactly one entry: null for the content shader, or an effect to apply ahead of it.

uniforms

Block to configure uniforms on the shader.

Creates a runtime shader PlatformRenderEffect with the given effect and child shaders.

Pass exactly one name in shaderNames and exactly one entry in inputs. Platforms handle more differently: Skiko binds inputs[i] to shaderNames[i] and requires the two arrays to be the same size, while Android applies a single content shader and chains every non-null input ahead of it.

Parameters

effect

The runtime effect to use.

shaderNames

Names of the shader uniforms in the SKSL code. Pass exactly one.

inputs

The input render effects to use for each shader. Pass exactly one entry: null for the content shader, or an effect to apply ahead of it.

uniforms

Block to configure uniforms on the shader.

Creates a runtime shader PlatformRenderEffect with the given effect and child shaders.

Pass exactly one name in shaderNames and exactly one entry in inputs. Platforms handle more differently: Skiko binds inputs[i] to shaderNames[i] and requires the two arrays to be the same size, while Android applies a single content shader and chains every non-null input ahead of it.

Parameters

effect

The runtime effect to use.

shaderNames

Names of the shader uniforms in the SKSL code. Pass exactly one.

inputs

The input render effects to use for each shader. Pass exactly one entry: null for the content shader, or an effect to apply ahead of it.

uniforms

Block to configure uniforms on the shader.