Allocation.CreateTyped 方法

定义

重载

CreateTyped(RenderScript, Type)

创建一个分配,供脚本使用给定 android.renderscript.Type 且无 mipmap

CreateTyped(RenderScript, Type, AllocationUsage)

创建一个分配,其大小由类型指定,默认情况下不会生成 mipmap

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

创建一个分配,供脚本使用给定 android.renderscript.Type 且无 mipmap

CreateTyped(RenderScript, Type)

创建一个分配,供脚本使用给定 android.renderscript.Type 且无 mipmap

[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

参数

rs
RenderScript

分配所属的上下文。

type
Type

描述数据布局的 RenderScript 类型

返回

分配

属性

注解

创建一个分配,供脚本使用给定 android.renderscript.Type 且无 mipmap

适用于 . 的 android.renderscript.Allocation.createTyped(android.renderscript.RenderScript, android.renderscript.Type)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

CreateTyped(RenderScript, Type, AllocationUsage)

创建一个分配,其大小由类型指定,默认情况下不会生成 mipmap

[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

参数

rs
RenderScript

分配所属的上下文。

type
Type

描述数据布局的 renderscript 类型

usage
AllocationUsage

指定如何利用分配的位字段

返回

分配

属性

注解

创建一个分配,其大小由类型指定,默认情况下不会生成 mipmap

适用于 . 的 android.renderscript.Allocation.createTyped(android.renderscript.RenderScript, android.renderscript.Type, int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

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

创建一个分配,供脚本使用给定 android.renderscript.Type 且无 mipmap

[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

参数

rs
RenderScript

分配所属的上下文。

type
Type

描述数据布局的 RenderScript 类型

mips
Allocation.MipmapControl

指定分配的所需 mipmap 行为

usage
AllocationUsage

指定如何利用分配的位字段

返回

分配

属性

注解

适用于 . 的 android.renderscript.Allocation.createTyped(android.renderscript.RenderScript, android.renderscript.Type)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于