RuntimeShader.SetInputShader(String, Shader) 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.
Assigns the uniform shader to the provided shader parameter.
[Android.Runtime.Register("setInputShader", "(Ljava/lang/String;Landroid/graphics/Shader;)V", "GetSetInputShader_Ljava_lang_String_Landroid_graphics_Shader_Handler", ApiSince=33)]
public virtual void SetInputShader (string shaderName, Android.Graphics.Shader shader);
[<Android.Runtime.Register("setInputShader", "(Ljava/lang/String;Landroid/graphics/Shader;)V", "GetSetInputShader_Ljava_lang_String_Landroid_graphics_Shader_Handler", ApiSince=33)>]
abstract member SetInputShader : string * Android.Graphics.Shader -> unit
override this.SetInputShader : string * Android.Graphics.Shader -> unit
Parameters
- shaderName
- String
name matching the uniform declared in the AGSL shader program
- shader
- Shader
shader passed into the AGSL shader program for sampling
- Attributes
Remarks
Assigns the uniform shader to the provided shader parameter. If the shader program does not have a uniform shader with that name then an IllegalArgumentException is thrown.
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.