ScriptGroup.Builder2.AddKernel(Script+KernelID, Type, Object[]) 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.
Adds a closure for a kernel
[Android.Runtime.Register("addKernel", "(Landroid/renderscript/Script$KernelID;Landroid/renderscript/Type;[Ljava/lang/Object;)Landroid/renderscript/ScriptGroup$Closure;", "", ApiSince=23)]
public Android.Renderscripts.ScriptGroup.Closure? AddKernel(Android.Renderscripts.Script.KernelID? k, Android.Renderscripts.Type? returnType, params Java.Lang.Object[]? argsAndBindings);
[<Android.Runtime.Register("addKernel", "(Landroid/renderscript/Script$KernelID;Landroid/renderscript/Type;[Ljava/lang/Object;)Landroid/renderscript/ScriptGroup$Closure;", "", ApiSince=23)>]
member this.AddKernel : Android.Renderscripts.Script.KernelID * Android.Renderscripts.Type * Java.Lang.Object[] -> Android.Renderscripts.ScriptGroup.Closure
Parameters
Kernel ID for the kernel function
- returnType
- Type
The type of the allocation that receives the kernel's return value.
- argsAndBindings
- Object[]
arguments followed by bindings for global variables
Returns
a closure
- Attributes
Remarks
Adds a closure for a kernel
Android reference for android.renderscript.ScriptGroup.Builder2.addKernel.
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.