Allocation.CreateSized 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
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
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
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.