Program.BindConstants(Allocation, Int32) 方法

定义

将常量缓冲区作为统一输入绑定到程序

[Android.Runtime.Register("bindConstants", "(Landroid/renderscript/Allocation;I)V", "GetBindConstants_Landroid_renderscript_Allocation_IHandler")]
public virtual void BindConstants(Android.Renderscripts.Allocation? a, int slot);
[<Android.Runtime.Register("bindConstants", "(Landroid/renderscript/Allocation;I)V", "GetBindConstants_Landroid_renderscript_Allocation_IHandler")>]
abstract member BindConstants : Android.Renderscripts.Allocation * int -> unit
override this.BindConstants : Android.Renderscripts.Allocation * int -> unit

参数

a
Allocation

包含统一数据的分配

slot
Int32

在程序的常量缓冲区分配列表中编制索引

属性

注解

将常量缓冲区作为统一输入绑定到程序

Java文档android.renderscript.Program.bindConstants(android.renderscript.Allocation, int)

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

适用于