Allocation.CreateTyped Method

Definition

Overloads

CreateTyped(RenderScript, Type)

Creates an Allocation for use by scripts with a given android.renderscript.Type and no mipmaps

CreateTyped(RenderScript, Type, AllocationUsage)

Creates an Allocation with the size specified by the type and no mipmaps generated by default

CreateTyped(RenderScript, Type, Allocation+MipmapControl, AllocationUsage)

Creates an Allocation for use by scripts with a given android.renderscript.Type and no mipmaps

CreateTyped(RenderScript, Type)

Creates an Allocation for use by scripts with a given android.renderscript.Type and no mipmaps

[Android.Runtime.Register("createTyped", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Type;)Landroid/renderscript/Allocation;", "")]
public static Android.Renderscripts.Allocation? CreateTyped (Android.Renderscripts.RenderScript? rs, Android.Renderscripts.Type? type);
[<Android.Runtime.Register("createTyped", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Type;)Landroid/renderscript/Allocation;", "")>]
static member CreateTyped : Android.Renderscripts.RenderScript * Android.Renderscripts.Type -> Android.Renderscripts.Allocation

Parameters

rs
RenderScript

Context to which the Allocation will belong.

type
Type

RenderScript Type describing data layout

Returns

allocation

Attributes

Remarks

Creates an Allocation for use by scripts with a given android.renderscript.Type and no mipmaps

Java documentation for android.renderscript.Allocation.createTyped(android.renderscript.RenderScript, android.renderscript.Type).

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

CreateTyped(RenderScript, Type, AllocationUsage)

Creates an Allocation with the size specified by the type and no mipmaps generated by default

[Android.Runtime.Register("createTyped", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Type;I)Landroid/renderscript/Allocation;", "")]
public static Android.Renderscripts.Allocation? CreateTyped (Android.Renderscripts.RenderScript? rs, Android.Renderscripts.Type? type, Android.Renderscripts.AllocationUsage usage);
[<Android.Runtime.Register("createTyped", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Type;I)Landroid/renderscript/Allocation;", "")>]
static member CreateTyped : Android.Renderscripts.RenderScript * Android.Renderscripts.Type * Android.Renderscripts.AllocationUsage -> Android.Renderscripts.Allocation

Parameters

rs
RenderScript

Context to which the allocation will belong.

type
Type

renderscript type describing data layout

usage
AllocationUsage

bit field specifying how the allocation is utilized

Returns

allocation

Attributes

Remarks

Creates an Allocation with the size specified by the type and no mipmaps generated by default

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

CreateTyped(RenderScript, Type, Allocation+MipmapControl, AllocationUsage)

Creates an Allocation for use by scripts with a given android.renderscript.Type and no mipmaps

[Android.Runtime.Register("createTyped", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Type;Landroid/renderscript/Allocation$MipmapControl;I)Landroid/renderscript/Allocation;", "")]
public static Android.Renderscripts.Allocation? CreateTyped (Android.Renderscripts.RenderScript? rs, Android.Renderscripts.Type? type, Android.Renderscripts.Allocation.MipmapControl? mips, Android.Renderscripts.AllocationUsage usage);
[<Android.Runtime.Register("createTyped", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Type;Landroid/renderscript/Allocation$MipmapControl;I)Landroid/renderscript/Allocation;", "")>]
static member CreateTyped : Android.Renderscripts.RenderScript * Android.Renderscripts.Type * Android.Renderscripts.Allocation.MipmapControl * Android.Renderscripts.AllocationUsage -> Android.Renderscripts.Allocation

Parameters

rs
RenderScript

Context to which the Allocation will belong.

type
Type

RenderScript Type describing data layout

mips
Allocation.MipmapControl

specifies desired mipmap behaviour for the allocation

usage
AllocationUsage

bit field specifying how the Allocation is utilized

Returns

allocation

Attributes

Remarks

Java documentation for android.renderscript.Allocation.createTyped(android.renderscript.RenderScript, android.renderscript.Type).

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