Udostępnij za pośrednictwem


Mesh.SetFloatUniform Method

Definition

Overloads

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

Sets the uniform value corresponding to the shader assigned to the mesh.

SetFloatUniform(String, Single, Single)

Sets the uniform value corresponding to the shader assigned to the mesh.

SetFloatUniform(String, Single, Single, Single)

Sets the uniform value corresponding to the shader assigned to the mesh.

SetFloatUniform(String, Single)

Sets the uniform value corresponding to the shader assigned to the mesh.

SetFloatUniform(String, Single[])

Sets the uniform value corresponding to the shader assigned to the mesh.

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

Sets the uniform value corresponding to the shader assigned to the mesh.

[Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;FFFF)V", "GetSetFloatUniform_Ljava_lang_String_FFFFHandler", ApiSince=34)]
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=34)>]
abstract member SetFloatUniform : string * single * single * single * single -> unit
override this.SetFloatUniform : string * single * single * single * single -> unit

Parameters

uniformName
String

name matching the float uniform declared in the shader program.

value1
Single

first float value corresponding to the float uniform with the given name.

value2
Single

second float value corresponding to the float uniform with the given name.

value3
Single

third float value corresponding to the float uniform with the given name.

value4
Single

fourth float value corresponding to the float uniform with the given name.

Attributes

Remarks

Sets the uniform value corresponding to the shader assigned to the mesh. If the shader 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.Mesh.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 the shader assigned to the mesh.

[Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;FF)V", "GetSetFloatUniform_Ljava_lang_String_FFHandler", ApiSince=34)]
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=34)>]
abstract member SetFloatUniform : string * single * single -> unit
override this.SetFloatUniform : string * single * single -> unit

Parameters

uniformName
String

name matching the float uniform declared in the shader program.

value1
Single

first float value corresponding to the float uniform with the given name.

value2
Single

second float value corresponding to the float uniform with the given name.

Attributes

Remarks

Sets the uniform value corresponding to the shader assigned to the mesh. If the shader 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.Mesh.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 the shader assigned to the mesh.

[Android.Runtime.Register("setFloatUniform", "(Ljava/lang/String;FFF)V", "GetSetFloatUniform_Ljava_lang_String_FFFHandler", ApiSince=34)]
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=34)>]
abstract member SetFloatUniform : string * single * single * single -> unit
override this.SetFloatUniform : string * single * single * single -> unit

Parameters

uniformName
String

name matching the float uniform declared in the shader program.

value1
Single

first float value corresponding to the float uniform with the given name.

value2
Single

second float value corresponding to the float uniform with the given name.

value3
Single

third float value corresponding to the float unifiform with the given name.

Attributes

Remarks

Sets the uniform value corresponding to the shader assigned to the mesh. If the shader 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.Mesh.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 the shader assigned to the mesh.

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

Parameters

uniformName
String

name matching the float uniform declared in the shader program.

value
Single

float value corresponding to the float uniform with the given name.

Attributes

Remarks

Sets the uniform value corresponding to the shader assigned to the mesh. 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.Mesh.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 the shader assigned to the mesh.

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

Parameters

uniformName
String

name matching the float uniform declared in the shader program.

values
Single[]

float value corresponding to the vec4 float uniform with the given name.

Attributes

Remarks

Sets the uniform value corresponding to the shader assigned to the mesh. 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.Mesh.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