Language

Program.BaseProgramBuilder.SetShader Method

Definition

Overloads

Name Description
SetShader(String)

Sets the shader source from a string.

SetShader(Resources, Int32)

Reads the shader source from a UTF-8 raw resource.

SetShader(String)

Sets the shader source from a string.

[Android.Runtime.Register("setShader", "(Ljava/lang/String;)Landroid/renderscript/Program$BaseProgramBuilder;", "GetSetShader_Ljava_lang_String_Handler")]
public virtual Android.Renderscripts.Program.BaseProgramBuilder SetShader(string s);
[<Android.Runtime.Register("setShader", "(Ljava/lang/String;)Landroid/renderscript/Program$BaseProgramBuilder;", "GetSetShader_Ljava_lang_String_Handler")>]
abstract member SetShader : string -> Android.Renderscripts.Program.BaseProgramBuilder
override this.SetShader : string -> Android.Renderscripts.Program.BaseProgramBuilder

Parameters

s
String

The shader source text.

Returns

This builder.

Attributes

Remarks

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

SetShader(Resources, Int32)

Reads the shader source from a UTF-8 raw resource.

[Android.Runtime.Register("setShader", "(Landroid/content/res/Resources;I)Landroid/renderscript/Program$BaseProgramBuilder;", "GetSetShader_Landroid_content_res_Resources_IHandler")]
public virtual Android.Renderscripts.Program.BaseProgramBuilder SetShader(Android.Content.Res.Resources resources, int resourceID);
[<Android.Runtime.Register("setShader", "(Landroid/content/res/Resources;I)Landroid/renderscript/Program$BaseProgramBuilder;", "GetSetShader_Landroid_content_res_Resources_IHandler")>]
abstract member SetShader : Android.Content.Res.Resources * int -> Android.Renderscripts.Program.BaseProgramBuilder
override this.SetShader : Android.Content.Res.Resources * int -> Android.Renderscripts.Program.BaseProgramBuilder

Parameters

resources
Resources

The resources containing the shader file.

resourceID
Int32

The raw resource identifier for the UTF-8 shader source.

Returns

This builder.

Attributes

Remarks

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