Teanga

RuntimeXfermode.SetFloatUniform Method

Definition

Overloads

Name Description
SetFloatUniform(String, Single, Single, Single)

Sets the uniform value corresponding to this color filter.

SetFloatUniform(String, Single, Single)

Sets the uniform value corresponding to this color filter.

SetFloatUniform(String, Single, Single, Single, Single)

Sets the uniform value corresponding to this color filter.

SetFloatUniform(String, Single)

Sets the uniform value corresponding to this color filter.

SetFloatUniform(String, Single[])

Sets the uniform value corresponding to this color filter.

SetFloatUniform(String, Single, Single, Single)

Sets the uniform value corresponding to this color filter.

[Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;FFF)V", "GetSetFloatUniform_Ljava_lang_String_FFFHandler", ApiSince=36)]
public virtual void SetFloatUniform(string uniformName, float value1, float value2, float value3);
[<Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;FFF)V", "GetSetFloatUniform_Ljava_lang_String_FFFHandler", ApiSince=36)>]
abstract member SetFloatUniform : string * single * single * single -> unit
override this.SetFloatUniform : string * single * single * single -> unit

Parameters

uniformName
String

name matching the uniform declared in the AGSL program

value1
Single

The first floating-point value assigned to the named uniform.

value2
Single

The second floating-point value assigned to the named uniform.

value3
Single

The third floating-point value assigned to the named uniform.

Attributes

Remarks

Sets the uniform value corresponding to this color filter. If the effect does not have a uniform with that name or if the uniform is declared with a type other than a vec3 or float[3] then an IllegalArgumentException is thrown.

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

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

SetFloatUniform(String, Single, Single)

Sets the uniform value corresponding to this color filter.

[Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;FF)V", "GetSetFloatUniform_Ljava_lang_String_FFHandler", ApiSince=36)]
public virtual void SetFloatUniform(string uniformName, float value1, float value2);
[<Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;FF)V", "GetSetFloatUniform_Ljava_lang_String_FFHandler", ApiSince=36)>]
abstract member SetFloatUniform : string * single * single -> unit
override this.SetFloatUniform : string * single * single -> unit

Parameters

uniformName
String

name matching the uniform declared in the AGSL program

value1
Single

The first floating-point value assigned to the named uniform.

value2
Single

The second floating-point value assigned to the named uniform.

Attributes

Remarks

Sets the uniform value corresponding to this color filter. If the effect does not have a uniform with that name or if the uniform is declared with a type other than a vec2 or float[2] then an IllegalArgumentException is thrown.

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

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

SetFloatUniform(String, Single, Single, Single, Single)

Sets the uniform value corresponding to this color filter.

[Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;FFFF)V", "GetSetFloatUniform_Ljava_lang_String_FFFFHandler", ApiSince=36)]
public virtual void SetFloatUniform(string uniformName, float value1, float value2, float value3, float value4);
[<Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;FFFF)V", "GetSetFloatUniform_Ljava_lang_String_FFFFHandler", ApiSince=36)>]
abstract member SetFloatUniform : string * single * single * single * single -> unit
override this.SetFloatUniform : string * single * single * single * single -> unit

Parameters

uniformName
String

name matching the uniform declared in the AGSL program

value1
Single

The first floating-point value assigned to the named uniform.

value2
Single

The second floating-point value assigned to the named uniform.

value3
Single

The third floating-point value assigned to the named uniform.

value4
Single

The fourth floating-point value assigned to the named uniform.

Attributes

Remarks

Sets the uniform value corresponding to this color filter. If the effect does not have a uniform with that name or if the uniform is declared with a type other than a vec4 or float[4] then an IllegalArgumentException is thrown.

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

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

SetFloatUniform(String, Single)

Sets the uniform value corresponding to this color filter.

[Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;F)V", "GetSetFloatUniform_Ljava_lang_String_FHandler", ApiSince=36)]
public virtual void SetFloatUniform(string uniformName, float value);
[<Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;F)V", "GetSetFloatUniform_Ljava_lang_String_FHandler", ApiSince=36)>]
abstract member SetFloatUniform : string * single -> unit
override this.SetFloatUniform : string * single -> unit

Parameters

uniformName
String

name matching the uniform declared in the AGSL program

value
Single

The floating-point value assigned to the named uniform.

Attributes

Remarks

Sets the uniform value corresponding to this color filter. If the effect does not have a uniform with that name or if the uniform is declared with a type other than a float or float[1] then an IllegalArgumentException is thrown.

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

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

SetFloatUniform(String, Single[])

Sets the uniform value corresponding to this color filter.

[Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;[F)V", "GetSetFloatUniform_Ljava_lang_String_arrayFHandler", ApiSince=36)]
public virtual void SetFloatUniform(string uniformName, float[] values);
[<Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;[F)V", "GetSetFloatUniform_Ljava_lang_String_arrayFHandler", ApiSince=36)>]
abstract member SetFloatUniform : string * single[] -> unit
override this.SetFloatUniform : string * single[] -> unit

Parameters

uniformName
String

name matching the uniform declared in the AGSL program

values
Single[]

The ordered floating-point values assigned to the named uniform.

Attributes

Remarks

Sets the uniform value corresponding to this color filter. If the effect does not have a uniform with that name or if the uniform is declared with a type other than a float (for N=1), vecN, or float[N] where N is the length of the values param then an IllegalArgumentException is thrown.

Java documentation for android.graphics.RuntimeXfermode.setFloatUniform(java.lang.String, float[]).

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