Freigeben über


Program.GetConstant(Int32) Method

Definition

Returns the type of the constant buffer used in the program object.

[Android.Runtime.Register("getConstant", "(I)Landroid/renderscript/Type;", "GetGetConstant_IHandler")]
public virtual Android.Renderscripts.Type? GetConstant (int slot);
[<Android.Runtime.Register("getConstant", "(I)Landroid/renderscript/Type;", "GetGetConstant_IHandler")>]
abstract member GetConstant : int -> Android.Renderscripts.Type
override this.GetConstant : int -> Android.Renderscripts.Type

Parameters

slot
Int32

index of the constant input type to return

Returns

constant input type

Attributes

Remarks

Returns the type of the constant buffer used in the program object. It could be used to query internal elements or create an allocation to store constant data.

Java documentation for android.renderscript.Program.getConstant(int).

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