Program.GetConstant(Int32) 方法

定义

返回程序对象中使用的常量缓冲区的类型。

[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

参数

slot
Int32

要返回的常量输入类型的索引

返回

常量输入类型

属性

注解

返回程序对象中使用的常量缓冲区的类型。 它可用于查询内部元素或创建分配来存储常量数据。

Java文档android.renderscript.Program.getConstant(int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于