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
返回
- 属性