RuntimeShader.SetInputBuffer(String, BitmapShader) Method

Definition

Assigns the uniform shader to the provided shader parameter.

[Android.Runtime.Register("setInputBuffer", "(Ljava/lang/String;Landroid/graphics/BitmapShader;)V", "GetSetInputBuffer_Ljava_lang_String_Landroid_graphics_BitmapShader_Handler", ApiSince=33)]
public virtual void SetInputBuffer (string shaderName, Android.Graphics.BitmapShader shader);
[<Android.Runtime.Register("setInputBuffer", "(Ljava/lang/String;Landroid/graphics/BitmapShader;)V", "GetSetInputBuffer_Ljava_lang_String_Landroid_graphics_BitmapShader_Handler", ApiSince=33)>]
abstract member SetInputBuffer : string * Android.Graphics.BitmapShader -> unit
override this.SetInputBuffer : string * Android.Graphics.BitmapShader -> unit

Parameters

shaderName
String
shader
BitmapShader
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.

Unlike setInputShader this method returns samples directly from the bitmap's buffer. This means that there will be no transformation of the sampled pixels, such as colorspace conversion or alpha premultiplication.

Java documentation for android.graphics.RuntimeShader.setInputBuffer(java.lang.String, android.graphics.BitmapShader).

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