Edit

SKRuntimeEffect.ToShader Method

Definition

Overloads

Name Description
ToShader()

Creates a shader from this runtime effect with default uniforms.

ToShader(SKRuntimeEffectUniforms)

Creates a shader from this runtime effect with the specified uniforms.

ToShader(SKRuntimeEffectUniforms, SKRuntimeEffectChildren)

Creates a shader from this runtime effect with the specified uniforms and children.

ToShader(SKRuntimeEffectUniforms, SKRuntimeEffectChildren, SKMatrix)

Creates a shader from this runtime effect with the specified uniforms, children, and local matrix.

ToShader()

Creates a shader from this runtime effect with default uniforms.

public SkiaSharp.SKShader ToShader();

Returns

A new shader.

Applies to

ToShader(SKRuntimeEffectUniforms)

Creates a shader from this runtime effect with the specified uniforms.

public SkiaSharp.SKShader ToShader(SkiaSharp.SKRuntimeEffectUniforms uniforms);

Parameters

uniforms
SKRuntimeEffectUniforms

The uniform values to use.

Returns

A new shader.

Applies to

ToShader(SKRuntimeEffectUniforms, SKRuntimeEffectChildren)

Creates a shader from this runtime effect with the specified uniforms and children.

public SkiaSharp.SKShader ToShader(SkiaSharp.SKRuntimeEffectUniforms uniforms, SkiaSharp.SKRuntimeEffectChildren children);

Parameters

uniforms
SKRuntimeEffectUniforms

The uniform values to use.

children
SKRuntimeEffectChildren

The child effects to use.

Returns

A new shader.

Applies to

ToShader(SKRuntimeEffectUniforms, SKRuntimeEffectChildren, SKMatrix)

Creates a shader from this runtime effect with the specified uniforms, children, and local matrix.

public SkiaSharp.SKShader ToShader(SkiaSharp.SKRuntimeEffectUniforms uniforms, SkiaSharp.SKRuntimeEffectChildren children, SkiaSharp.SKMatrix localMatrix);

Parameters

uniforms
SKRuntimeEffectUniforms

The uniform values to use.

children
SKRuntimeEffectChildren

The child effects to use.

localMatrix
SKMatrix

The local transformation matrix to apply.

Returns

A new shader.

Applies to