MTLDevice_Extensions.CreateLibrary 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
傳回
- 屬性