Condividi tramite


Allocation.CreateSized Method

Definition

Overloads

CreateSized(RenderScript, Element, Int32)

Creates an Allocation with a specified number of given elements

CreateSized(RenderScript, Element, Int32, AllocationUsage)

Creates an Allocation with a specified number of given elements

CreateSized(RenderScript, Element, Int32)

Creates an Allocation with a specified number of given elements

[Android.Runtime.Register("createSized", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Element;I)Landroid/renderscript/Allocation;", "")]
public static Android.Renderscripts.Allocation? CreateSized (Android.Renderscripts.RenderScript? rs, Android.Renderscripts.Element? e, int count);
[<Android.Runtime.Register("createSized", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Element;I)Landroid/renderscript/Allocation;", "")>]
static member CreateSized : Android.Renderscripts.RenderScript * Android.Renderscripts.Element * int -> Android.Renderscripts.Allocation

Parameters

rs
RenderScript

Context to which the Allocation will belong.

e
Element

Element to use in the Allocation

count
Int32

the number of Elements in the Allocation

Returns

allocation

Attributes

Remarks

Creates an Allocation with a specified number of given elements

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

CreateSized(RenderScript, Element, Int32, AllocationUsage)

Creates an Allocation with a specified number of given elements

[Android.Runtime.Register("createSized", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Element;II)Landroid/renderscript/Allocation;", "")]
public static Android.Renderscripts.Allocation? CreateSized (Android.Renderscripts.RenderScript? rs, Android.Renderscripts.Element? e, int count, Android.Renderscripts.AllocationUsage usage);
[<Android.Runtime.Register("createSized", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Element;II)Landroid/renderscript/Allocation;", "")>]
static member CreateSized : Android.Renderscripts.RenderScript * Android.Renderscripts.Element * int * Android.Renderscripts.AllocationUsage -> Android.Renderscripts.Allocation

Parameters

rs
RenderScript

Context to which the Allocation will belong.

e
Element

Element to use in the Allocation

count
Int32

the number of Elements in the Allocation

usage
AllocationUsage

bit field specifying how the Allocation is utilized

Returns

allocation

Attributes

Remarks

Creates an Allocation with a specified number of given elements

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