Dela via


RenderEffect.CreateRuntimeShaderEffect(RuntimeShader, String) Method

Definition

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

[Android.Runtime.Register("createRuntimeShaderEffect", "(Landroid/graphics/RuntimeShader;Ljava/lang/String;)Landroid/graphics/RenderEffect;", "", ApiSince=33)]
public static Android.Graphics.RenderEffect CreateRuntimeShaderEffect (Android.Graphics.RuntimeShader shader, string uniformShaderName);
[<Android.Runtime.Register("createRuntimeShaderEffect", "(Landroid/graphics/RuntimeShader;Ljava/lang/String;)Landroid/graphics/RenderEffect;", "", ApiSince=33)>]
static member CreateRuntimeShaderEffect : Android.Graphics.RuntimeShader * string -> Android.Graphics.RenderEffect

Parameters

shader
RuntimeShader

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

uniformShaderName
String

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

Returns

Attributes

Remarks

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

Java documentation for android.graphics.RenderEffect.createRuntimeShaderEffect(android.graphics.RuntimeShader, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to