語言

Allocation.CreateTyped 方法

定義

多載

名稱 Description
CreateTyped(RenderScript, Type)

為擁有指定 android.renderscript.Type 且無 mipmap 的腳本建立配置

CreateTyped(RenderScript, Type, AllocationUsage)

建立由類型指定的大小配置,且預設不會產生 mipmaps

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 的腳本建立配置

Java 文件 android.renderscript.Allocation.createTyped(android.renderscript.RenderScript, android.renderscript.Type)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

CreateTyped(RenderScript, Type, AllocationUsage)

建立由類型指定的大小配置,且預設不會產生 mipmaps

[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

位元欄位,指定分配的使用方式

傳回

配置

屬性

備註

建立由類型指定的大小配置,且預設不會產生 mipmaps

Java 文件 android.renderscript.Allocation.createTyped(android.renderscript.RenderScript, android.renderscript.Type, int)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

位元欄位,指定分配的使用方式

傳回

配置

屬性

備註

Java 文件 android.renderscript.Allocation.createTyped(android.renderscript.RenderScript, android.renderscript.Type)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於