共用方式為


MTLDevice_Extensions.CreateLibrary 方法

定義

多載

CreateLibrary(IMTLDevice, NSUrl, NSError)

從指定 URL 的函式建立並傳回新的程式庫。

CreateLibrary(IMTLDevice, NSBundle, NSError)

從指定套件組合中的函式建立並傳回新的程式庫。

CreateLibrary(IMTLDevice, NSUrl, NSError)

從指定 URL 的函式建立並傳回新的程式庫。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static Metal.IMTLLibrary CreateLibrary (this Metal.IMTLDevice This, Foundation.NSUrl url, out Foundation.NSError error);
static member CreateLibrary : Metal.IMTLDevice * Foundation.NSUrl *  -> Metal.IMTLLibrary

參數

This
IMTLDevice

這個方法運作所在的 實例。

url
NSUrl
error
NSError

傳回

屬性

適用於

CreateLibrary(IMTLDevice, NSBundle, NSError)

從指定套件組合中的函式建立並傳回新的程式庫。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static Metal.IMTLLibrary CreateLibrary (this Metal.IMTLDevice This, Foundation.NSBundle bundle, out Foundation.NSError error);
static member CreateLibrary : Metal.IMTLDevice * Foundation.NSBundle *  -> Metal.IMTLLibrary

參數

This
IMTLDevice

這個方法運作所在的 實例。

bundle
NSBundle
error
NSError

傳回

屬性

適用於