Language

AllocationAdapter.Create2D(RenderScript, Allocation) Method

Definition

Creates a two-dimensional view with the base allocation's element and X and Y dimensions.

[Android.Runtime.Register("create2D", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Allocation;)Landroid/renderscript/AllocationAdapter;", "")]
public static Android.Renderscripts.AllocationAdapter? Create2D(Android.Renderscripts.RenderScript? rs, Android.Renderscripts.Allocation? a);
[<Android.Runtime.Register("create2D", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Allocation;)Landroid/renderscript/AllocationAdapter;", "")>]
static member Create2D : Android.Renderscripts.RenderScript * Android.Renderscripts.Allocation -> Android.Renderscripts.AllocationAdapter

Parameters

rs
RenderScript

The RenderScript context that owns the adapter.

a
Allocation

The base allocation whose storage is viewed.

Returns

The adapter viewing the base allocation through a two-dimensional window.

Attributes

Remarks

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