Allocation.CreateAllocations(RenderScript, Type, Int32, Int32) メソッド

定義

指定した android.renderscript.Typeと使用フラグを使用して、新しい割り当て配列を作成します。

[Android.Runtime.Register("createAllocations", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Type;II)[Landroid/renderscript/Allocation;", "", ApiSince=24)]
public static Android.Renderscripts.Allocation[]? CreateAllocations(Android.Renderscripts.RenderScript? rs, Android.Renderscripts.Type? t, int usage, int numAlloc);
[<Android.Runtime.Register("createAllocations", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Type;II)[Landroid/renderscript/Allocation;", "", ApiSince=24)>]
static member CreateAllocations : Android.Renderscripts.RenderScript * Android.Renderscripts.Type * int * int -> Android.Renderscripts.Allocation[]

パラメーター

rs
RenderScript

RenderScript コンテキスト

t
Type

データ レイアウトを記述する RenderScript 型

usage
Int32

割り当ての使用方法を指定するビット フィールド

numAlloc
Int32

配列内の割り当ての数。

返品

Allocation[]

属性

注釈

指定した android.renderscript.Typeと使用フラグを使用して、新しい割り当て配列を作成します。 注: 入力割り当てが使用されている場合: USAGE_IO_INPUT、作成された割り当ては同じ BufferQueue を共有します。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象