Share via


Element.CreateVector(RenderScript, Element+DataType, Int32) Method

Definition

Create a custom vector element of the specified DataType and vector size.

[Android.Runtime.Register("createVector", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Element$DataType;I)Landroid/renderscript/Element;", "")]
public static Android.Renderscripts.Element? CreateVector (Android.Renderscripts.RenderScript? rs, Android.Renderscripts.Element.DataType? dt, int size);
[<Android.Runtime.Register("createVector", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Element$DataType;I)Landroid/renderscript/Element;", "")>]
static member CreateVector : Android.Renderscripts.RenderScript * Android.Renderscripts.Element.DataType * int -> Android.Renderscripts.Element

Parameters

rs
RenderScript

The context associated with the new Element.

dt
Element.DataType

The DataType for the new Element.

size
Int32

Vector size for the new Element. Range 2-4 inclusive supported.

Returns

Element

Attributes

Remarks

Java documentation for android.renderscript.Element.createVector(android.renderscript.RenderScript, android.renderscript.DataType, 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