Allocation.CreateAllocations(RenderScript, Type, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.