RenderEffect.CreateRuntimeShaderEffect(RuntimeShader, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.