MTLDevice_Extensions.CreateLibrary Method

Definition

Overloads

CreateLibrary(IMTLDevice, NSUrl, NSError)

Creates and returns a new library from the functions at the specified URL.

CreateLibrary(IMTLDevice, NSBundle, NSError)

Creates and returns a new library from the functions in the specified bundle.

CreateLibrary(IMTLDevice, NSUrl, NSError)

Creates and returns a new library from the functions at the specified 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

Parameters

This
IMTLDevice

The instance on which this method operates.

url
NSUrl
error
NSError

Returns

Attributes

Applies to

CreateLibrary(IMTLDevice, NSBundle, NSError)

Creates and returns a new library from the functions in the specified bundle.

[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

Parameters

This
IMTLDevice

The instance on which this method operates.

bundle
NSBundle
error
NSError

Returns

Attributes

Applies to