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

Definition

Caution

deprecated

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)]
[System.Obsolete("deprecated")]
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)>]
[<System.Obsolete("deprecated")>]
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[]

Allocation[]

Attributes

Remarks

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