Allocation.CreateTyped 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| CreateTyped(RenderScript, Type) |
為擁有指定 |
| CreateTyped(RenderScript, Type, AllocationUsage) |
建立由類型指定的大小配置,且預設不會產生 mipmaps |
| CreateTyped(RenderScript, Type, Allocation+MipmapControl, AllocationUsage) |
為擁有指定 |
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 的腳本建立配置
本頁部分內容為基於 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
本頁部分內容為基於 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 類型
指定分配所需的 MIPMAP 行為
- usage
- AllocationUsage
位元欄位,指定分配的使用方式
傳回
配置
- 屬性
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。