Share via


Allocation.CreateAllocations(RenderScript, Type, Int32, Int32) Method

Definition

Creates a new Allocation Array with the given android.renderscript.Type, and usage flags.

[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[]

Parameters

rs
RenderScript

RenderScript context

t
Type

RenderScript type describing data layout

usage
Int32

bit field specifying how the Allocation is utilized

numAlloc
Int32

Number of Allocations in the array.

Returns

Allocation[]

Attributes

Remarks

Creates a new Allocation Array with the given android.renderscript.Type, and usage flags. Note: If the input allocation is of usage: USAGE_IO_INPUT, the created Allocation will be sharing the same BufferQueue.

Java documentation for android.renderscript.Allocation.createAllocations(android.renderscript.RenderScript, android.renderscript.Type, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to