Udostępnij za pośrednictwem


RuntimeShader.SetFloatUniform Method

Definition

Overloads

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

Sets the uniform value corresponding to this shader.

SetFloatUniform(String, Single, Single)

Sets the uniform value corresponding to this shader.

SetFloatUniform(String, Single, Single, Single)

Sets the uniform value corresponding to this shader.

SetFloatUniform(String, Single)

Sets the uniform value corresponding to this shader.

SetFloatUniform(String, Single[])

Sets the uniform value corresponding to this shader.

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

Sets the uniform value corresponding to this shader.

[Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;FFFF)V", "GetSetFloatUniform_Ljava_lang_String_FFFFHandler", ApiSince=33)]
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=33)>]
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 shader program

value1
Single
value2
Single
value3
Single
value4
Single
Attributes

Remarks

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

Java documentation for android.graphics.RuntimeShader.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, Single)

Sets the uniform value corresponding to this shader.

[Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;FF)V", "GetSetFloatUniform_Ljava_lang_String_FFHandler", ApiSince=33)]
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=33)>]
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 shader program

value1
Single
value2
Single
Attributes

Remarks

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

Java documentation for android.graphics.RuntimeShader.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)

Sets the uniform value corresponding to this shader.

[Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;FFF)V", "GetSetFloatUniform_Ljava_lang_String_FFFHandler", ApiSince=33)]
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=33)>]
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 shader program

value1
Single
value2
Single
value3
Single
Attributes

Remarks

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

Java documentation for android.graphics.RuntimeShader.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)

Sets the uniform value corresponding to this shader.

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

Parameters

uniformName
String

name matching the uniform declared in the AGSL shader program

value
Single
Attributes

Remarks

Sets the uniform value corresponding to this shader. If the shader 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.RuntimeShader.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 shader.

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

Parameters

uniformName
String

name matching the uniform declared in the AGSL shader program

values
Single[]
Attributes

Remarks

Sets the uniform value corresponding to this shader. If the shader 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.RuntimeShader.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