語言

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

陣列中的分配數量。

傳回

分配[]

屬性

備註

建立一個新的配置陣列,包含給定 android.renderscript.Type的 、 和使用標誌。 注意:若輸入配置為 usage: USAGE_IO_INPUT,所建立的配置將共享相同的 BufferQueue。

Java 文件 android.renderscript.Allocation.createAllocations(android.renderscript.RenderScript, android.renderscript.Type, int, int)

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

適用於