Share via


RuntimeXfermode.SetInputXfermode(String, RuntimeXfermode) Method

Definition

Assigns the uniform xfermode to the provided xfermode parameter.

[Android.Runtime.Register("setInputXfermode", "(Ljava/lang/String;Landroid/graphics/RuntimeXfermode;)V", "GetSetInputXfermode_Ljava_lang_String_Landroid_graphics_RuntimeXfermode_Handler", ApiSince=36)]
public virtual void SetInputXfermode(string xfermodeName, Android.Graphics.RuntimeXfermode xfermode);
[<Android.Runtime.Register("setInputXfermode", "(Ljava/lang/String;Landroid/graphics/RuntimeXfermode;)V", "GetSetInputXfermode_Ljava_lang_String_Landroid_graphics_RuntimeXfermode_Handler", ApiSince=36)>]
abstract member SetInputXfermode : string * Android.Graphics.RuntimeXfermode -> unit
override this.SetInputXfermode : string * Android.Graphics.RuntimeXfermode -> unit

Parameters

xfermodeName
String

name matching the uniform declared in the AGSL program

xfermode
RuntimeXfermode

xfermode function passed into the AGSL program for sampling

Attributes

Remarks

Assigns the uniform xfermode to the provided xfermode parameter. If the shader program does not have a uniform xfermode with that name then an IllegalArgumentException is thrown.

Java documentation for android.graphics.RuntimeXfermode.setInputXfermode(java.lang.String, android.graphics.RuntimeXfermode).

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