Program.BindConstants(Allocation, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将常量缓冲区作为统一输入绑定到程序
[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
参数
包含统一数据的分配
- slot
- Int32
在程序的常量缓冲区分配列表中编制索引
- 属性
注解
将常量缓冲区作为统一输入绑定到程序
适用于 . 的 android.renderscript.Program.bindConstants(android.renderscript.Allocation, int)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。