Allocation.CreateTyped 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.
Overloads
CreateTyped(RenderScript, Type) |
Creates an Allocation for use by scripts with a given |
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 |
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
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
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
specifies desired mipmap behaviour for the allocation
- usage
- AllocationUsage
bit field specifying how the Allocation is utilized
Returns
allocation
- 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.