語言

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)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於