Language

Program.BaseProgramBuilder.AddConstant(Type) Method

Definition

Adds a constant-buffer layout to the program.

[Android.Runtime.Register("addConstant", "(Landroid/renderscript/Type;)Landroid/renderscript/Program$BaseProgramBuilder;", "GetAddConstant_Landroid_renderscript_Type_Handler")]
public virtual Android.Renderscripts.Program.BaseProgramBuilder AddConstant(Android.Renderscripts.Type t);
[<Android.Runtime.Register("addConstant", "(Landroid/renderscript/Type;)Landroid/renderscript/Program$BaseProgramBuilder;", "GetAddConstant_Landroid_renderscript_Type_Handler")>]
abstract member AddConstant : Android.Renderscripts.Type -> Android.Renderscripts.Program.BaseProgramBuilder
override this.AddConstant : Android.Renderscripts.Type -> Android.Renderscripts.Program.BaseProgramBuilder

Parameters

t
Type

The allocation type that describes a constant buffer's layout. Its element must not be complex.

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