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

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

属性

注解

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

适用于 . 的 android.renderscript.Program.bindConstants(android.renderscript.Allocation, int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于